|
1C-Bitrix 25.700.0
|
Открытые члены | |
| setStoreQuantity (int $storeId, int $productId, float $quantity) | |
| addReservationHistory (int $storeId, int $productId, int $basketId, float $quantity) | |
| getQuantityForItem (int $productId, int $basketId, int $storeId) | |
| getQuantityForBatch (array $basket2productId) | |
Calculation of balances based on the reservation history.
For example:
См. определение в файле availablequantitycalculator.php строка 40
| addReservationHistory | ( | int | $storeId, |
| int | $productId, | ||
| int | $basketId, | ||
| float | $quantity ) |
Add an item reservation history. The order of addition is IMPORTANT!
| int | $storeId | |
| int | $productId | |
| int | $basketId | |
| float | $quantity |
См. определение в файле availablequantitycalculator.php строка 78
| getQuantityForBatch | ( | array | $basket2productId | ) |
Get available for debit product quantity for batch with basket items.
| array | $basket2productId | in format ['basketId' => 'productId', 'basketId' => 'productId', ...] |
См. определение в файле availablequantitycalculator.php строка 172
| getQuantityForItem | ( | int | $productId, |
| int | $basketId, | ||
| int | $storeId ) |
Get available for debit product quantity for store.
| int | $productId | |
| int | $basketId | |
| int | $storeId |
См. определение в файле availablequantitycalculator.php строка 158
| setStoreQuantity | ( | int | $storeId, |
| int | $productId, | ||
| float | $quantity ) |
Set product store quantity.
| int | $storeId | |
| int | $productId | |
| float | $quantity |
См. определение в файле availablequantitycalculator.php строка 63