Can update price iv vat is a npr vat

This commit is contained in:
Laurent Destailleur 2009-05-15 10:44:00 +00:00
parent 2fd861ab7d
commit 2fd22e6865

View File

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