Skip to content
Snippets Groups Projects
Commit 7721f492 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #2295 from grandpaul/fix_webservice_product_price

Fix: webservices productorservice not updating the price.
parents ece70dbd 7569b322
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment