Merge pull request #2295 from grandpaul/fix_webservice_product_price
Fix: webservices productorservice not updating the price.
This commit is contained in:
commit
7721f4928d
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user