Fix scrutinizer

This commit is contained in:
Laurent Destailleur 2022-07-06 03:08:30 +02:00
parent 7e855eac52
commit 59816ce171
2 changed files with 5 additions and 3 deletions

View File

@ -3060,7 +3060,7 @@ class FactureFournisseur extends CommonInvoice
// Clear fields
$object->ref_supplier = (empty($this->ref_supplier) ? $langs->trans("CopyOf").' '.$object->ref_supplier : $this->ref_supplier);
$object->author = $user->id;
$object->user_valid = '';
$object->user_valid = 0;
$object->fk_facture_source = 0;
$object->date_creation = '';
$object->date_validation = '';

View File

@ -1149,8 +1149,10 @@ class SupplierProposal extends CommonObject
}
// Clear fields
$this->user_author = $user->id;
$this->user_valid = '';
$this->user_author = $user->id; // deprecated
$this->user_author_id = $user->id;
$this->user_valid = 0; // deprecated
$this->user_valid_id = 0;
$this->date = $now;
// Set ref