Merge remote-tracking branch 'upstream/develop' into facturerec

This commit is contained in:
Frédéric FRANCE
2021-02-08 20:21:46 +01:00
41 changed files with 3223 additions and 914 deletions

View File

@@ -2078,6 +2078,7 @@ abstract class CommonObject
$fieldname = 'fk_mode_reglement';
if ($this->element == 'societe') $fieldname = 'mode_reglement';
if (get_class($this) == 'Fournisseur') $fieldname = 'mode_reglement_supplier';
if (get_class($this) == 'Tva') $fieldname = 'fk_typepayment';
$sql = 'UPDATE '.MAIN_DB_PREFIX.$this->table_element;
$sql .= ' SET '.$fieldname.' = '.(($id > 0 || $id == '0') ? $id : 'NULL');