mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-04-11 12:50:55 +00:00
Review fix
This commit is contained in:
parent
ef90235e79
commit
c0606a54e9
1 changed files with 4 additions and 1 deletions
|
@ -1174,10 +1174,13 @@ class RetailcrmHistory
|
|||
|
||||
$isStockEnough = $product->checkQty($orderDetail->product_quantity);
|
||||
|
||||
// переменная используется для передачи разницы количества товара в метод StockAvailable::updateQuantity
|
||||
$deltaQuantity = -1 * $orderDetail->product_quantity;
|
||||
|
||||
StockAvailable::updateQuantity(
|
||||
$product_id,
|
||||
$product_attribute_id,
|
||||
-1 * $orderDetail->product_quantity,
|
||||
$deltaQuantity,
|
||||
Context::getContext()->shop->id
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue