From ba03fe1d04b22e45a3e23005078654e8f4a169d8 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 19 Sep 2003 13:39:05 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20dans=20fetch=20la=20lecture=20du=20libe?= =?UTF-8?q?lle=20facture=20des=20conditions=20de=20r=E9glement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/facture.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index e20a8a50967..0ea00e4ed12 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -159,7 +159,7 @@ class Facture Function fetch($rowid, $societe_id=0) { - $sql = "SELECT f.fk_soc,f.facnumber,f.amount,f.tva,f.total,f.total_ttc,f.remise,f.remise_percent,".$this->db->pdate("f.datef")."as df,f.fk_projet,".$this->db->pdate("f.date_lim_reglement")." as dlr, c.libelle, f.note, f.paye, f.fk_statut, f.fk_user_author"; + $sql = "SELECT f.fk_soc,f.facnumber,f.amount,f.tva,f.total,f.total_ttc,f.remise,f.remise_percent,".$this->db->pdate("f.datef")."as df,f.fk_projet,".$this->db->pdate("f.date_lim_reglement")." as dlr, c.libelle, c.libelle_facture, f.note, f.paye, f.fk_statut, f.fk_user_author"; $sql .= " FROM llx_facture as f, llx_cond_reglement as c"; $sql .= " WHERE f.rowid=$rowid AND c.rowid = f.fk_cond_reglement"; @@ -189,6 +189,7 @@ class Facture $this->statut = $obj->fk_statut; $this->date_lim_reglement = $obj->dlr; $this->cond_reglement = $obj->libelle; + $this->cond_reglement_facture = $obj->libelle_facture; $this->projetid = $obj->fk_projet; $this->note = stripslashes($obj->note); $this->user_author = $obj->fk_user_author;