Logidav Docs

AlertCommand extends ContainerAwareCommand
in package
uses LockableTrait

Class AlertCommand

Table of Contents

Properties

$saleToSkip  : mixed

Methods

checkLastProductSkuAction()  : int
check product sku if last product exist in logidav
configure()  : mixed
execute()  : mixed
orderRecoveryProblemCheck()  : int
Order Recovery Problem
orderWithShipmentMoreThenProductsCheck()  : int
Order with more shipment than products
orderWithTwoShipmentsAndHaveOnlyOneProductCheck()  : mixed
Order with two shipments while it contains a single product
printedAndMagentoStatusIsNotProcessingCheck()  : mixed
Order printed while its status in Magento history is not processing
printedMultipleTimesWhileSheHaveOnlyOneProductCheck()  : mixed
Orders printed more than once while containing a single product
processingAndAllProductsAreShippedCheck()  : int
Processing order while all of its products have been delivered
processingAndAllProductsHaveBeenProcessingOrCanceledCheck()  : int
Processing Order while all of its products have been canceled or delivered
processingButAllProductsAreCanceledCheck()  : int|void
Order printed while its status in Magento history is not processing
processingMagentoButNotInLogidavCheck()  : int
Processing command on Magento but not on Logidav
shippedOrderWithoutLogInShippingCheck()  : int
Order delivered but without log on the delivery
addAlert()  : mixed
Adding alert to database
addProductAlert()  : mixed
Adding alert to database
getMzConfig()  : mixed
strposa()  : bool|mixed
Strpos from array

Properties

Methods

checkLastProductSkuAction()

check product sku if last product exist in logidav

protected checkLastProductSkuAction() : int
Tags
throws
OptimisticLockException
Return values
int

execute()

protected execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
$input : InputInterface
$output : OutputInterface

orderRecoveryProblemCheck()

Order Recovery Problem

protected orderRecoveryProblemCheck(mixed $saleProduct, mixed $saleObj) : int
Parameters
$saleProduct : mixed
$saleObj : mixed
Tags
throws
OptimisticLockException
Return values
int

orderWithShipmentMoreThenProductsCheck()

Order with more shipment than products

protected orderWithShipmentMoreThenProductsCheck(mixed $saleProduct, mixed $sale) : int
Parameters
$saleProduct : mixed
$sale : mixed
Tags
throws
OptimisticLockException
Return values
int

orderWithTwoShipmentsAndHaveOnlyOneProductCheck()

Order with two shipments while it contains a single product

protected orderWithTwoShipmentsAndHaveOnlyOneProductCheck(mixed $saleProduct, mixed $sale) : mixed
Parameters
$saleProduct : mixed
$sale : mixed
Tags
throws
OptimisticLockException

printedAndMagentoStatusIsNotProcessingCheck()

Order printed while its status in Magento history is not processing

protected printedAndMagentoStatusIsNotProcessingCheck(mixed $saleProduct, mixed $sale) : mixed
Parameters
$saleProduct : mixed
$sale : mixed
Tags
throws
OptimisticLockException

printedMultipleTimesWhileSheHaveOnlyOneProductCheck()

Orders printed more than once while containing a single product

protected printedMultipleTimesWhileSheHaveOnlyOneProductCheck(mixed $saleProduct, mixed $sale) : mixed
Parameters
$saleProduct : mixed
$sale : mixed
Tags
throws
OptimisticLockException

processingAndAllProductsAreShippedCheck()

Processing order while all of its products have been delivered

protected processingAndAllProductsAreShippedCheck(mixed $saleProduct, mixed $sale) : int
Parameters
$saleProduct : mixed
$sale : mixed
Tags
throws
OptimisticLockException
Return values
int

processingAndAllProductsHaveBeenProcessingOrCanceledCheck()

Processing Order while all of its products have been canceled or delivered

protected processingAndAllProductsHaveBeenProcessingOrCanceledCheck(mixed $saleProduct, mixed $sale) : int
Parameters
$saleProduct : mixed
$sale : mixed
Tags
throws
OptimisticLockException
Return values
int

processingButAllProductsAreCanceledCheck()

Order printed while its status in Magento history is not processing

protected processingButAllProductsAreCanceledCheck(mixed $saleProduct, mixed $sale) : int|void
Parameters
$saleProduct : mixed
$sale : mixed
Tags
throws
OptimisticLockException
Return values
int|void

processingMagentoButNotInLogidavCheck()

Processing command on Magento but not on Logidav

protected processingMagentoButNotInLogidavCheck(mixed $saleProduct, mixed $sale) : int
Parameters
$saleProduct : mixed
$sale : mixed
Tags
throws
OptimisticLockException
Return values
int

shippedOrderWithoutLogInShippingCheck()

Order delivered but without log on the delivery

protected shippedOrderWithoutLogInShippingCheck(mixed $saleProduct, mixed $sale) : int
Parameters
$saleProduct : mixed
$sale : mixed
Tags
throws
OptimisticLockException
Return values
int

addAlert()

Adding alert to database

private addAlert(mixed $sale, mixed $alertId[, mixed $saleProduct = null ]) : mixed
Parameters
$sale : mixed
$alertId : mixed
$saleProduct : mixed = null
Tags
throws
OptimisticLockException

addProductAlert()

Adding alert to database

private addProductAlert(mixed $productId, mixed $alertId) : mixed
Parameters
$productId : mixed
$alertId : mixed
Tags
throws
OptimisticLockException

strposa()

Strpos from array

private strposa(mixed $haystack[, array<string|int, mixed> $needles = [] ][, int $offset = 0 ]) : bool|mixed
Parameters
$haystack : mixed
$needles : array<string|int, mixed> = []
$offset : int = 0
Return values
bool|mixed

        
On this page

Search results