Use setSupplierPriceExpression instead of product setPriceExpression

This commit is contained in:
Ion Agorria 2016-02-14 14:50:10 +01:00
parent b1568a7319
commit 6bfc3f446f

View File

@ -235,8 +235,10 @@ if (empty($reshook))
setEventMessages($priceparser->translatedError(), null, 'errors');
}
}
if (! $error && ! empty($conf->dynamicprices->enabled)) {
$ret=$object->setPriceExpression($price_expression);
if (! $error && ! empty($conf->dynamicprices->enabled))
{
//Set the price expression for this supplier price
$ret=$object->setSupplierPriceExpression($price_expression);
if ($ret < 0)
{
$error++;