diff --git a/htdocs/compta/facture/class/facture-rec.class.php b/htdocs/compta/facture/class/facture-rec.class.php index e0c28539c6b09..ea3d6f0ea68d5 100644 --- a/htdocs/compta/facture/class/facture-rec.class.php +++ b/htdocs/compta/facture/class/facture-rec.class.php @@ -203,8 +203,10 @@ class FactureRec extends CommonInvoice */ public $fk_societe_rib; + const PAYMENTCODETOEDITSOCIETERIB = "PRE"; + /** * 'type' if the field format ('integer', 'integer:ObjectClass:PathToClass[:AddCreateButtonOrNot[:Filter]]', 'varchar(x)', 'double(24,8)', 'real', 'price', 'text', 'html', 'date', 'datetime', 'timestamp', 'duration', 'mail', 'phone', 'url', 'password') * Note: Filter can be a string like "(t.ref:like:'SO-%') or (t.date_creation:<:'20160101') or (t.nature:is:NULL)" @@ -567,7 +569,7 @@ public function update(User $user, $notrigger = 0) $sql .= " localtax1 = ".((float) $this->total_localtax1).","; $sql .= " localtax2 = ".((float) $this->total_localtax2).","; $sql .= " total_ht = ".((float) $this->total_ht).","; - $sql .= " total_ttc = ".((float) $this->total_ttc); + $sql .= " total_ttc = ".((float) $this->total_ttc).","; $sql .= " fk_societe_rib = ".((int) $this->fk_societe_rib); // TODO Add missing fields $sql .= " WHERE rowid = ".((int) $this->id);