From 490bca37729b141c6223a728c1f4b9a019a492de Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 10 Mar 2006 11:34:55 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20lorsqu'on=20=E9ditait=20une=20ligne,=20l?= =?UTF-8?q?e=20prix=20(ex:=2012=20000=80)=20affichait=2012=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/facture.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 859c1cbe202..05d8491c290 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -1144,12 +1144,12 @@ class Facture $qty=1; } $remise = 0; - $price = price2num($pu); - $subprice = $price; + $subprice = price2num($pu); + $price = $subprice; if (trim(strlen($remise_percent)) > 0) { - $remise = round(($pu * $remise_percent / 100), 2); - $price = $pu - $remise; + $remise = round(($subprice * $remise_percent / 100), 2); + $price = $subprice - $remise; } else {