UpsertStoreBatchAction implements Action uses ProductAndStoreInfo
Update price and quantity for inventory method by average or create new batch of products.
Table of Contents
Interfaces
- Action
- Action with document.
Methods
- __construct() : mixed
- canExecute() : Result
- Checking the possibility of executing an action.
- execute() : Result
- Executing action.
- getProductId() : int|null
- Product.
- getStoreId() : int|null
- Store.
Methods
__construct()
public
__construct(int $storeId, int $productId, float $amount[, int $documentElementId = null ][, float $purchasingPrice = null ][, string $purchasingCurrency = null ]) : mixed
Parameters
- $storeId : int
- $productId : int
- $amount : float
- $documentElementId : int = null
- $purchasingPrice : float = null
- $purchasingCurrency : string = null
canExecute()
Checking the possibility of executing an action.
public
canExecute() : Result
Return values
Resultexecute()
Executing action.
public
execute() : Result
Tags
Return values
ResultgetProductId()
Product.
public
getProductId() : int|null
Return values
int|nullgetStoreId()
Store.
public
getStoreId() : int|null