Merge pull request #2295 from grandpaul/fix_webservice_product_price

Fix: webservices productorservice not updating the price.
This commit is contained in:
Laurent Destailleur 2015-01-31 20:18:08 +01:00
commit 7721f4928d

View File

@ -668,6 +668,25 @@ function updateProductOrService($authentication,$product)
{
$error++;
}
if (! $error)
{
if ($newobject->price_base_type == 'HT')
{
$result=$newobject->updatePrice($newobject->price, $newobject->price_base_type,$fuser);
if ($result <= 0)
{
$error++;
}
}
elseif ($newobject->price_base_type == 'TTC')
{
$result=$newobject->updatePrice($newobject->price_ttc, $newobject->price_base_type);
if ($result <= 0)
{
$error++;
}
}
}
if (! $error)
{