diff --git a/htdocs/product/price.php b/htdocs/product/price.php index ba004a567a6..4281d756afb 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -70,7 +70,8 @@ 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]; - $newvat=$_POST["tva_tx_".$i]; + $newnpr=(eregi('\*',$_POST["tva_tx_".$i]) ? 1 : $defaultnpr); + $newvat=eregi_replace('\*','',$_POST["tva_tx_".$i]); } } } @@ -80,7 +81,8 @@ 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"]; - $newvat=$_POST["tva_tx"]; + $newnpr=(eregi('\*',$_POST["tva_tx"]) ? 1 : $defaultnpr); + $newvat=eregi_replace('\*','',$_POST["tva_tx"]); } if ($product->update_price($product->id, $newprice, $newpricebase, $user, $newvat,$newprice_min, $level) > 0)