Fix: Can update price even with "NPR" VAT rates.

This commit is contained in:
Laurent Destailleur 2009-05-15 10:47:12 +00:00
parent 2fd22e6865
commit fb4119ae7d
2 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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"]);
}