diff --git a/htdocs/don/class/paymentdonation.class.php b/htdocs/don/class/paymentdonation.class.php index e083ed069a2..e3e0358fed4 100644 --- a/htdocs/don/class/paymentdonation.class.php +++ b/htdocs/don/class/paymentdonation.class.php @@ -548,7 +548,7 @@ class PaymentDonation extends CommonObject $this->fk_donation = 0; $this->datec = ''; - $this->tms = ''; + $this->tms = dol_now(); $this->datep = ''; $this->amount = ''; $this->fk_typepayment = ''; diff --git a/htdocs/expensereport/class/paymentexpensereport.class.php b/htdocs/expensereport/class/paymentexpensereport.class.php index 8ca1dea6ffa..0f9f709bae9 100644 --- a/htdocs/expensereport/class/paymentexpensereport.class.php +++ b/htdocs/expensereport/class/paymentexpensereport.class.php @@ -505,7 +505,7 @@ class PaymentExpenseReport extends CommonObject $this->fk_expensereport = 0; $this->datec = ''; - $this->tms = ''; + $this->tms = dol_now(); $this->datep = ''; $this->amount = ''; $this->fk_typepayment = 0; diff --git a/htdocs/product/class/productbatch.class.php b/htdocs/product/class/productbatch.class.php index 3900eb8fcdf..5f5987b439f 100644 --- a/htdocs/product/class/productbatch.class.php +++ b/htdocs/product/class/productbatch.class.php @@ -341,7 +341,7 @@ class Productbatch extends CommonObject { $this->id = 0; - $this->tms = ''; + $this->tms = dol_now(); $this->fk_product_stock = ''; $this->sellby = ''; $this->eatby = ''; diff --git a/htdocs/product/class/propalmergepdfproduct.class.php b/htdocs/product/class/propalmergepdfproduct.class.php index b28188ed152..7253c50511b 100644 --- a/htdocs/product/class/propalmergepdfproduct.class.php +++ b/htdocs/product/class/propalmergepdfproduct.class.php @@ -558,7 +558,7 @@ class Propalmergepdfproduct extends CommonObject $this->fk_user_author = 0; $this->fk_user_mod = 0; $this->datec = ''; - $this->tms = ''; + $this->tms = dol_now(); $this->import_key = ''; } } diff --git a/htdocs/product/stock/class/productstockentrepot.class.php b/htdocs/product/stock/class/productstockentrepot.class.php index cbbb792d2d0..7d9e7c07d2b 100644 --- a/htdocs/product/stock/class/productstockentrepot.class.php +++ b/htdocs/product/stock/class/productstockentrepot.class.php @@ -602,9 +602,9 @@ class ProductStockEntrepot extends CommonObject { $this->id = 0; - $this->tms = ''; - $this->fk_product = null; - $this->fk_entrepot = null; + $this->tms = dol_now(); + $this->fk_product = 0; + $this->fk_entrepot = 0; $this->seuil_stock_alerte = ''; $this->desiredstock = ''; $this->import_key = ''; diff --git a/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php b/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php index e7734550848..ba3ab193089 100644 --- a/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php +++ b/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php @@ -491,7 +491,7 @@ class StockTransfer extends CommonObject */ public function update(User $user, $notrigger = 0) { - $this->tms = ''; // Will be done automatically because tms field is on update cascade + $this->tms = 0; // Will be done automatically because tms field is on update cascade $res = $this->updateCommon($user, $notrigger); if (($this->socid > 0 || $this->fk_soc > 0) && empty($this->thirdparty)) { $this->fetch_thirdparty(); diff --git a/htdocs/resource/class/dolresource.class.php b/htdocs/resource/class/dolresource.class.php index 819863fb863..bfb92461fea 100644 --- a/htdocs/resource/class/dolresource.class.php +++ b/htdocs/resource/class/dolresource.class.php @@ -170,7 +170,7 @@ class Dolresource extends CommonObject { $this->db = $db; $this->status = 0; - $this->tms = ''; + $this->tms = dol_now(); $this->cache_code_type_resource = array(); } diff --git a/htdocs/salaries/class/paymentsalary.class.php b/htdocs/salaries/class/paymentsalary.class.php index 17b5b0fff2a..297a2865f06 100644 --- a/htdocs/salaries/class/paymentsalary.class.php +++ b/htdocs/salaries/class/paymentsalary.class.php @@ -563,7 +563,7 @@ class PaymentSalary extends CommonObject $this->id = 0; $this->fk_salary = 0; $this->datec = ''; - $this->tms = ''; + $this->tms = dol_now(); $this->datepaye = ''; $this->amount = 0.0; $this->fk_typepayment = 0; diff --git a/htdocs/salaries/class/salary.class.php b/htdocs/salaries/class/salary.class.php index 4e186387a23..c7cbc98ccb3 100644 --- a/htdocs/salaries/class/salary.class.php +++ b/htdocs/salaries/class/salary.class.php @@ -311,7 +311,7 @@ class Salary extends CommonObject { $this->id = 0; - $this->tms = ''; + $this->tms = dol_now(); $this->fk_user = 0; $this->datep = ''; $this->datev = '';