Logidav Docs

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

Methods

getContainersForProduct()

Checking if product is canceled

public getContainersForProduct(mixed $product_id, mixed $date) : bool
Parameters
$product_id : mixed
$date : mixed
Return values
bool

getContainersQtySum()

Checking if product is canceled

public getContainersQtySum(mixed $product_id, mixed $date) : bool
Parameters
$product_id : mixed
$date : mixed
Return values
bool

getLastUpdatedQty()

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>|null

getSales()

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|null

isProcessingOrCompleteOrder()

Checking if he order itself is canceled

public isProcessingOrCompleteOrder(mixed $saleId) : bool
Parameters
$saleId : mixed
Return values
bool

isUpdatedSale()

Checking if sale is updated or not

public isUpdatedSale(mixed $saleId) : bool
Parameters
$saleId : mixed
Return values
bool

setQuantityForProduct()

Setting specific quantity for product

public setQuantityForProduct(mixed $productId, mixed $qty) : int
Parameters
$productId : mixed
$qty : mixed
Return values
int

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

        
On this page

Search results