Fix: en multiprix la prise en compte de la base du prix est calculé dans la fonction _log_price
This commit is contained in:
parent
47a0420e3f
commit
8f3432874e
@ -72,20 +72,7 @@ if ($_POST["action"] == 'update_price' &&
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($_POST["multiprices_base_type_".$i] == 'TTC')
|
$product->multiprices["$i"] = price2num($_POST["price_".$i],'MU');
|
||||||
{
|
|
||||||
$price_ttc = price2num($_POST["price_".$i],'MU');
|
|
||||||
$price = price2num($_POST["price_".$i]) / (1 + ($product->tva_tx / 100));
|
|
||||||
$price = price2num($price,'MU');
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$price = price2num($_POST["price_".$i],'MU');
|
|
||||||
$price_ttc = price2num($_POST["price_".$i]) * (1 + ($product->tva_tx / 100));
|
|
||||||
$price_ttc = price2num($price_ttc,'MU');
|
|
||||||
}
|
|
||||||
$product->multiprices["$i"] = $price;
|
|
||||||
$product->multiprices_ttc["$i"] = $price_ttc;
|
|
||||||
$product->multiprices_base_type["$i"] = $_POST["multiprices_base_type_".$i];
|
$product->multiprices_base_type["$i"] = $_POST["multiprices_base_type_".$i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user