From 966d2c8e9c4530119ec7d3ea1992c55ea119768d Mon Sep 17 00:00:00 2001 From: erics Date: Thu, 11 Mar 2004 19:08:13 +0000 Subject: [PATCH] on peut avoir besoin de la ligne de remise dans les factures --- htdocs/facture.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 4920c87d7db..db2f41d05a4 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -42,6 +42,7 @@ class Facture var $tva; var $total; var $note; + var $paye; var $db_table; var $propalid; var $projetid; @@ -265,7 +266,7 @@ class Facture * Lignes */ - $sql = "SELECT l.fk_product, l.description, l.price, l.qty, l.rowid, l.tva_taux, l.remise_percent, l.subprice"; + $sql = "SELECT l.fk_product, l.description, l.price, l.qty, l.rowid, l.tva_taux, l.remise, l.remise_percent, l.subprice"; $sql .= " FROM ".MAIN_DB_PREFIX."facturedet as l WHERE l.fk_facture = ".$this->id; $result = $this->db->query($sql); @@ -283,6 +284,7 @@ class Facture $faclig->price = $objp->price; $faclig->subprice = $objp->subprice; $faclig->tva_taux = $objp->tva_taux; + $faclig->remise = $objp->remise; $faclig->remise_percent = $objp->remise_percent; $faclig->produit_id = $objp->fk_product; $this->lignes[$i] = $faclig;