From f157a22cd0ca39d1e825c56d6aa9d07a787cc117 Mon Sep 17 00:00:00 2001 From: oscim Date: Thu, 6 Jan 2022 16:55:24 +0100 Subject: [PATCH] Update paiementfourn.class.php For stock in fetch object payment id type --- htdocs/fourn/class/paiementfourn.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/class/paiementfourn.class.php b/htdocs/fourn/class/paiementfourn.class.php index fa58139b7e7..de9aa4eade9 100644 --- a/htdocs/fourn/class/paiementfourn.class.php +++ b/htdocs/fourn/class/paiementfourn.class.php @@ -93,7 +93,7 @@ class PaiementFourn extends Paiement $sql = 'SELECT p.rowid, p.ref, p.entity, p.datep as dp, p.amount, p.statut, p.fk_bank, p.multicurrency_amount,'; $sql .= ' c.code as payment_code, c.libelle as payment_type,'; - $sql .= ' p.num_paiement as num_payment, p.note, b.fk_account'; + $sql .= ' p.num_paiement as num_payment, p.note, b.fk_account, p.fk_paiement'; $sql .= ' FROM '.MAIN_DB_PREFIX.'paiementfourn as p'; $sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'c_paiement as c ON p.fk_paiement = c.id'; $sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'bank as b ON p.fk_bank = b.rowid'; @@ -130,6 +130,7 @@ class PaiementFourn extends Paiement $this->note_private = $obj->note; $this->type_code = $obj->payment_code; $this->type_label = $obj->payment_type; + $this->fk_paiement = $obj->fk_paiement; $this->statut = $obj->statut; $error = 1;