From 778a29d3ad748608ffe86d50acd5ea347a5a847b Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 4 Sep 2003 21:29:25 +0000 Subject: [PATCH] Affichage de la tva de chaque produit --- htdocs/comm/propal.php3 | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/htdocs/comm/propal.php3 b/htdocs/comm/propal.php3 index 6c872cdbe21..7f69bc8e501 100644 --- a/htdocs/comm/propal.php3 +++ b/htdocs/comm/propal.php3 @@ -277,11 +277,6 @@ if ($propalid) * */ - - /* - * - */ - print ""; if ($action == 'statut') @@ -306,14 +301,14 @@ if ($propalid) print ''; print ""; print ""; - print ''; + print ''; if ($obj->statut == 0) { print ""; } print "\n"; - $sql = "SELECT pt.rowid, p.label as product, p.ref, pt.price, pt.qty, p.rowid as prodid"; + $sql = "SELECT pt.rowid, p.label as product, p.ref, pt.price, pt.qty, p.rowid as prodid, pt.tva_tx"; $sql .= " FROM llx_propaldet as pt, llx_product as p WHERE pt.fk_product = p.rowid AND pt.fk_propal = $propalid"; $result = $db->query($sql); @@ -332,7 +327,7 @@ if ($propalid) print "\n"; print ''; print ""; - print ''; + print ''; print "\n"; if ($obj->statut == 0 && $user->rights->propale->creer) { @@ -348,7 +343,7 @@ if ($propalid) } } - $sql = "SELECT pt.rowid, pt.description, pt.price, pt.qty"; + $sql = "SELECT pt.rowid, pt.description, pt.price, pt.qty, pt.tva_tx"; $sql .= " FROM llx_propaldet as pt WHERE pt.fk_propal = $propalid AND pt.fk_product = 0"; $result = $db->query($sql); @@ -363,7 +358,8 @@ if ($propalid) print "\n"; print ''; print ""; - print "\n"; + print ''; + print "\n"; if ($obj->statut == 0 && $user->rights->propale->creer) { print '';
RéfProduitPrix Qté.PrixTvaQté. 
[$objp->ref]'.$objp->product.'".price($objp->price)." '.$objp->tva_tx.' %".$objp->qty."
 '.$objp->description.'".price($objp->price)."".$objp->qty."'.$objp->tva_tx.' %".$objp->qty."Supprimer