MoveStoreBatchAction extends UpsertStoreBatchAction uses WriteOffAmountValidator
Move products from one store to another.
Table of Contents
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 $storeFromId, int $storeToId, int $productId, float $amount[, int $documentElementId = null ]) : mixed
Parameters
- $storeFromId : int
- $storeToId : int
- $productId : int
- $amount : float
- $documentElementId : int = 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