From da2f1fa536913df5ba2b10b6f66a78c019294f1a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 19 May 2009 13:58:11 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20possibilit=E9=20de=20mettre=20le=20prix?= =?UTF-8?q?=20=E0=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 0ac9945f782..d5ef78a1839 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -800,7 +800,7 @@ class Product extends CommonObject if ($newvat == '') $newvat=$this->tva_tx; - if ($newprice) + if ($newprice!='' || $newprice==0) { if ($newpricebase == 'TTC') { @@ -808,7 +808,7 @@ class Product extends CommonObject $price = price2num($newprice) / (1 + ($newvat / 100)); $price = price2num($price,'MU'); - if ($newminprice!='') + if ($newminprice!='' || $newminprice==0) { $price_min_ttc = price2num($newminprice,'MU'); $price_min = price2num($newminprice) / (1 + ($newvat / 100)); @@ -826,7 +826,7 @@ class Product extends CommonObject $price_ttc = price2num($newprice) * (1 + ($newvat / 100)); $price_ttc = price2num($price_ttc,'MU'); - if ($newminprice!='') + if ($newminprice!='' || $newminprice==0) { $price_min = price2num($newminprice,'MU'); $price_min_ttc = price2num($newminprice) * (1 + ($newvat / 100));