From fb4119ae7d48d3ca0a5b19426c736d19cbdfe5d5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 15 May 2009 10:47:12 +0000 Subject: [PATCH] Fix: Can update price even with "NPR" VAT rates. --- ChangeLog | 1 + htdocs/product/price.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bc02d8ff75c..8835f045e87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ For users: - New: Complete theme bluelagoon and rodolphe - Fix: Customer code was not correct on PDF it if contains special characters. +- Fix: Can update price even with "NPR" VAT rates. For translators: - Update some language files. diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 4281d756afb..5f2ea0f9d7a 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -70,7 +70,7 @@ if ($_POST["action"] == 'update_price' && ! $_POST["cancel"] && $user->rights->p $newprice=price2num($_POST["price_".$i],'MU'); $newprice_min=price2num($_POST["price_min_".$i],'MU'); $newpricebase=$_POST["multiprices_base_type_".$i]; - $newnpr=(eregi('\*',$_POST["tva_tx_".$i]) ? 1 : $defaultnpr); + $newnpr=(eregi('\*',$_POST["tva_tx_".$i]) ? 1 : 0); $newvat=eregi_replace('\*','',$_POST["tva_tx_".$i]); } } @@ -81,7 +81,7 @@ if ($_POST["action"] == 'update_price' && ! $_POST["cancel"] && $user->rights->p $newprice=price2num($_POST["price"],'MU'); $newprice_min=price2num($_POST["price_min"],'MU'); $newpricebase=$_POST["price_base_type"]; - $newnpr=(eregi('\*',$_POST["tva_tx"]) ? 1 : $defaultnpr); + $newnpr=(eregi('\*',$_POST["tva_tx"]) ? 1 : 0); $newvat=eregi_replace('\*','',$_POST["tva_tx"]); }