Merge pull request #10068 from prietojc/patch-2
New: Update just the multiprices that have been changed
This commit is contained in:
commit
2d2481cc5f
@ -352,7 +352,10 @@ if (empty($reshook))
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($object->multiprices[$key]!=$newprice || $object->multiprices_min[$key]!=$newprice_min || $object->multiprices_base_type[$key]!=$val['price_base_type'])
|
||||||
$res = $object->updatePrice($newprice, $val['price_base_type'], $user, $val['vat_tx'], $newprice_min, $key, $val['npr'], $psq, 0, $val['localtaxes_array'], $val['default_vat_code']);
|
$res = $object->updatePrice($newprice, $val['price_base_type'], $user, $val['vat_tx'], $newprice_min, $key, $val['npr'], $psq, 0, $val['localtaxes_array'], $val['default_vat_code']);
|
||||||
|
else $res=0;
|
||||||
|
|
||||||
|
|
||||||
if ($res < 0) {
|
if ($res < 0) {
|
||||||
$error ++;
|
$error ++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user