From 478540c17f34c370d1cb92a02007b49088834348 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 21 Feb 2007 18:43:20 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Les=20infos=20exactes=20de=20tva=20n'=E9?= =?UTF-8?q?tait=20pas=20charg=E9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/commande.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 3fc76adfd55..9e0ef94cd83 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -994,7 +994,8 @@ class Commande extends CommonObject { $this->lignes = array(); $sql = 'SELECT l.rowid, l.fk_product, l.fk_commande, l.description, l.price, l.qty, l.tva_tx,'; - $sql.= ' l.remise_percent, l.subprice, l.coef, l.rang, l.info_bits, '; + $sql.= ' l.remise_percent, l.subprice, l.coef, l.rang, l.info_bits,'; + $sql.= ' l.total_ht, l.total_ttc, l.total_tva,'; $sql.= ' p.ref as product_ref, p.description as product_desc, p.fk_product_type, p.label'; $sql.= ' FROM '.MAIN_DB_PREFIX.'commandedet as l'; $sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'product as p ON (p.rowid = l.fk_product)'; @@ -1019,6 +1020,9 @@ class Commande extends CommonObject $ligne->desc = $objp->description; // Description ligne $ligne->qty = $objp->qty; $ligne->tva_tx = $objp->tva_tx; + $ligne->total_ht = $objp->total_ht; + $ligne->total_ttc = $objp->total_ttc; + $ligne->total_tva = $objp->total_tva; $ligne->subprice = $objp->subprice; $ligne->remise_percent = $objp->remise_percent; $ligne->price = $objp->price;