From dbde1d02411f151e12addb08460356059ee8322a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 16 May 2003 13:30:46 +0000 Subject: [PATCH] Gestion du taux de tva lors de l'ajout d'une ligne --- htdocs/compta/facture.php3 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture.php3 b/htdocs/compta/facture.php3 index d60f8192c5b..bab28856f35 100644 --- a/htdocs/compta/facture.php3 +++ b/htdocs/compta/facture.php3 @@ -84,7 +84,11 @@ if ($action == 'payed') if ($action == 'addligne') { $fac = new Facture($db); - $result = $fac->addline($facid,$HTTP_POST_VARS["desc"],$HTTP_POST_VARS["pu"],$HTTP_POST_VARS["qty"]); + $result = $fac->addline($facid, + $HTTP_POST_VARS["desc"], + $HTTP_POST_VARS["pu"], + $HTTP_POST_VARS["qty"], + $HTTP_POST_VARS["tva_tx"]); } if ($action == 'updateligne') @@ -211,6 +215,7 @@ if ($action == 'pdf') print facture_pdf_create($db, $facid); // définit dans /includes/modules/facture/modules_facture.php } +$html = new Form($db); /* * @@ -221,6 +226,7 @@ if ($action == 'pdf') */ if ($action == 'create') { + print_titre("Emettre une facture"); if ($propalid) @@ -513,7 +519,9 @@ else print "\n"; print ''; print ''; - print ''; + print ''; + print $html->select_tva("tva_tx"); + print ''; print ''; print ''; print '';