Review fix

This commit is contained in:
Almaz Bazarov 2024-07-02 14:52:58 +02:00
parent ef90235e79
commit c0606a54e9

View file

@ -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
);