ProductFixQtyCommand
extends ContainerAwareCommand
in package
uses
LockableTrait
Class ProductFixQtyCommand
Table of Contents
Properties
- $cachedContainerProducts : mixed
- $dbConnection : mixed
- $output : mixed
Methods
- fixDispoResetedQty() : mixed
- fixMultipleUnload() : mixed
- getContainersForProduct() : bool
- Checking if product is canceled
- getContainersQtySum() : bool
- Checking if product is canceled
- getLastUpdatedQty() : array<string|int, mixed>|null
- Finding last updated Qty
- getSales() : mixed
- Get sales after the update
- getUpdatedProductInSale() : mixed
- getUserByContainer() : mixed|null
- Getting
- isProcessingOrCompleteOrder() : bool
- Checking if he order itself is canceled
- isUpdatedSale() : bool
- Checking if sale is updated or not
- setQuantityForProduct() : int
- Setting specific quantity for product
- configure() : mixed
- execute() : mixed
- getContainersForProductFromLog() : mixed
Properties
$cachedContainerProducts
private
mixed
$cachedContainerProducts
$dbConnection
private
mixed
$dbConnection
$output
private
mixed
$output
Methods
fixDispoResetedQty()
public
fixDispoResetedQty() : mixed
fixMultipleUnload()
public
fixMultipleUnload() : mixed
getContainersForProduct()
Checking if product is canceled
public
getContainersForProduct(mixed $product_id, mixed $date) : bool
Parameters
- $product_id : mixed
- $date : mixed
Return values
boolgetContainersQtySum()
Checking if product is canceled
public
getContainersQtySum(mixed $product_id, mixed $date) : bool
Parameters
- $product_id : mixed
- $date : mixed
Return values
boolgetLastUpdatedQty()
Finding last updated Qty
public
getLastUpdatedQty(mixed $pId[, mixed $dech = false ]) : array<string|int, mixed>|null
Parameters
- $pId : mixed
- $dech : mixed = false
Return values
array<string|int, mixed>|nullgetSales()
Get sales after the update
public
getSales(mixed $productId, mixed $date[, mixed $dateOp = '>=' ]) : mixed
Parameters
- $productId : mixed
- $date : mixed
- $dateOp : mixed = '>='
getUpdatedProductInSale()
public
getUpdatedProductInSale(mixed $saleProductId) : mixed
Parameters
- $saleProductId : mixed
getUserByContainer()
Getting
public
getUserByContainer(mixed $refrence) : mixed|null
Parameters
- $refrence : mixed
Return values
mixed|nullisProcessingOrCompleteOrder()
Checking if he order itself is canceled
public
isProcessingOrCompleteOrder(mixed $saleId) : bool
Parameters
- $saleId : mixed
Return values
boolisUpdatedSale()
Checking if sale is updated or not
public
isUpdatedSale(mixed $saleId) : bool
Parameters
- $saleId : mixed
Return values
boolsetQuantityForProduct()
Setting specific quantity for product
public
setQuantityForProduct(mixed $productId, mixed $qty) : int
Parameters
- $productId : mixed
- $qty : mixed
Return values
intconfigure()
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
getContainersForProductFromLog()
private
getContainersForProductFromLog(mixed $pId, mixed $lastId) : mixed
Parameters
- $pId : mixed
- $lastId : mixed