From 6bfc3f446f0106f6f8ae19349e76c40681cc4f57 Mon Sep 17 00:00:00 2001 From: Ion Agorria Date: Sun, 14 Feb 2016 14:50:10 +0100 Subject: [PATCH] Use setSupplierPriceExpression instead of product setPriceExpression --- htdocs/product/fournisseurs.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index bd4d60b5370..535420d3243 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -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++;