Can update price iv vat is a npr vat
This commit is contained in:
parent
2fd861ab7d
commit
2fd22e6865
@ -70,7 +70,8 @@ if ($_POST["action"] == 'update_price' && ! $_POST["cancel"] && $user->rights->p
|
|||||||
$newprice=price2num($_POST["price_".$i],'MU');
|
$newprice=price2num($_POST["price_".$i],'MU');
|
||||||
$newprice_min=price2num($_POST["price_min_".$i],'MU');
|
$newprice_min=price2num($_POST["price_min_".$i],'MU');
|
||||||
$newpricebase=$_POST["multiprices_base_type_".$i];
|
$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=price2num($_POST["price"],'MU');
|
||||||
$newprice_min=price2num($_POST["price_min"],'MU');
|
$newprice_min=price2num($_POST["price_min"],'MU');
|
||||||
$newpricebase=$_POST["price_base_type"];
|
$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)
|
if ($product->update_price($product->id, $newprice, $newpricebase, $user, $newvat,$newprice_min, $level) > 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user