From 7b8a33adfe3da778793521ba2a954278f38eb0cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 2 Nov 2015 13:20:51 +0100 Subject: [PATCH] Update commonobject.class.php --- htdocs/core/class/commonobject.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index e87145b8443..907c9c7b46b 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1391,6 +1391,8 @@ abstract class CommonObject if ($this->db->query($sql)) { $this->mode_reglement_id = $id; + // for supplier + if (get_class($this) == 'Fournisseur') $this->mode_reglement_supplier_id = $id; return 1; } else @@ -1431,6 +1433,8 @@ abstract class CommonObject if ($this->db->query($sql)) { $this->cond_reglement_id = $id; + // for supplier + if (get_class($this) == 'Fournisseur') $this->cond_reglement_supplier_id = $id; $this->cond_reglement = $id; // for compatibility return 1; }