diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 79ea4a60693..2dfd97a5293 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -143,8 +143,7 @@ if ($HTTP_POST_VARS["action"] == 'add') if ( $comm->fetch($HTTP_POST_VARS["commandeid"]) ) { $lines = $comm->fetch_lignes(); - - for ($i = 0 ; $i < sizeof(lines) ; $i++) + for ($i = 0 ; $i < sizeof($lines) ; $i++) { $result = $facture->addline($facid, addslashes($lines[$i]->description), @@ -388,6 +387,7 @@ $html = new Form($db); if ($_GET["action"] == 'create') { print_titre("Emettre une facture"); + if ($propalid) { $sql = "SELECT s.nom, s.prefix_comm, s.idp, p.price, p.remise, p.remise_percent, p.tva, p.total, p.ref, ".$db->pdate("p.datep")." as dp, c.id as statut, c.label as lst"; @@ -638,16 +638,17 @@ if ($_GET["action"] == 'create') if ($_GET["commandeid"]) { - print_titre("Produits"); - print '
| Réf | Produit | '; print 'Prix | Remise | Qté. | |
| [$objp->ref] | \n"; print ''.$objp->product.' | '; - print "".price($objp->subprice)." | "; + print ''.price($objp->subprice).' | '; print ''.$objp->remise_percent.' % | '; - print "".$objp->qty." | '.$objp->qty.' | '; $i++; } }