Bitrix API

ReservePaidProductsStrategy extends ManualStrategy

Strategy automatic reservation of product rows when they are paid.

If the product is already reserved for an equal or greater quantity, then nothing happens. If the product is already reserved for a smaller quantity, the reserve is updated to the paid quantity. If the product has not been reserved yet, a new reserve is created for the paid quantity.

Table of Contents

Properties

$defaultDateReserveEnd  : Date|null
$defaultStoreId  : int

Methods

__construct()  : mixed
getDeductedProductRows()  : array<string|int, mixed>
The quantity of product rows deducted.
removeReservesPaymentProducts()  : ReservationResult
Removing reserves for payment items.
reservation()  : ReservationResult
Reservation all products of entity.
reservationProductRow()  : ReservationResult
Reservation one concrete product row.

Properties

Methods

getDeductedProductRows()

The quantity of product rows deducted.

public getDeductedProductRows(array<string|int, mixed> $rowsIds) : array<string|int, mixed>
Parameters
$rowsIds : array<string|int, mixed>
Return values
array<string|int, mixed>

in format [rowId => deductedQuantity]

reservationProductRow()

Reservation one concrete product row.

public reservationProductRow(int $productRowId, float $quantity, int $storeId, Date|null $dateReserveEnd) : ReservationResult
Parameters
$productRowId : int
$quantity : float
$storeId : int
$dateReserveEnd : Date|null
Tags
inheritDoc
Return values
ReservationResult

        
On this page

Search results