ProductFixQtyAndLogCommand
extends ContainerAwareCommand
in package
uses
LockableTrait
Class ProductFixQtyAndLogCommand
Table of Contents
Properties
- $backupProductLogTable : mixed
- $dbConnection : mixed
- $fetchedUsers : mixed
- $originProductIventoryLogTable : mixed
- $originProductIventoryTable : mixed
- $originProductLogTable : mixed
- $output : mixed
- $productHistory : void
- $productService : mixed
- $productsQty : mixed
- $tempCalculateProductLogTable : mixed
- $tempProductLogTable : mixed
Methods
- backupProductQtyLogTable() : mixed
- clearproductInventoryLog() : mixed
- configure() : mixed
- execute() : int|void|null
- fixAutoDispoDate() : mixed
- getComposedProduct() : array<string|int, mixed>
- getInventoryProductQty() : mixed
- getProductContainersUnload() : mixed
- getProductContenairHistory() : mixed
- getProductQtyResetHistory() : mixed
- getProductSaleHistory() : mixed
- getProductsDispoHistory() : mixed
- getSaleCanceled() : mixed
- getSaleProductCanceled() : mixed
- getSaleProductUpdate() : mixed
- getSaleProductUpdateByCurrentProduct() : mixed
- getSaleProductUpdateByCurrentProductHistory() : mixed
- getSaleQtyChange() : array<string|int, mixed>|false
- getSalesByProduct() : mixed
- getUserId() : mixed|null
- initTmpTables() : mixed
- create TEMP table for calculation
- insertNewProductInventoryQtyLog() : mixed
- insertNewProductQtyLog() : mixed
- insertOldLog() : mixed
- populateTmpTable() : void
- Populate TEMP table for calculation
- processHistory() : mixed
- processInventory() : mixed
- processProductInventory() : mixed
- processQty() : mixed
- productLogProcessing() : mixed
- setQuantityForProduct() : mixed
- updateProductNullInventoryQty() : mixed
- updateProductsQty() : mixed
Properties
$backupProductLogTable
private
mixed
$backupProductLogTable
= 'mz_product_qty_log_backup_'
$dbConnection
private
mixed
$dbConnection
$fetchedUsers
private
mixed
$fetchedUsers
= []
$originProductIventoryLogTable
private
mixed
$originProductIventoryLogTable
= 'mz_product_inventory_qty_log'
$originProductIventoryTable
private
mixed
$originProductIventoryTable
= 'mz_product_inventory'
$originProductLogTable
private
mixed
$originProductLogTable
= 'mz_product_qty_log'
$output
private
mixed
$output
$productHistory
private
void
$productHistory
= []
$productService
private
mixed
$productService
$productsQty
private
mixed
$productsQty
= []
$tempCalculateProductLogTable
private
mixed
$tempCalculateProductLogTable
= 'mz_product_qty_log_calculate_temp'
$tempProductLogTable
private
mixed
$tempProductLogTable
= 'mz_product_qty_log_static_temp'
Methods
backupProductQtyLogTable()
protected
backupProductQtyLogTable() : mixed
clearproductInventoryLog()
protected
clearproductInventoryLog() : mixed
configure()
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int|void|null
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
int|void|nullfixAutoDispoDate()
protected
fixAutoDispoDate() : mixed
getComposedProduct()
protected
getComposedProduct(mixed $product) : array<string|int, mixed>
Parameters
- $product : mixed
Return values
array<string|int, mixed>getInventoryProductQty()
protected
getInventoryProductQty(mixed $product) : mixed
Parameters
- $product : mixed
getProductContainersUnload()
protected
getProductContainersUnload(mixed $product) : mixed
Parameters
- $product : mixed
getProductContenairHistory()
protected
getProductContenairHistory(mixed $product) : mixed
Parameters
- $product : mixed
getProductQtyResetHistory()
protected
getProductQtyResetHistory(mixed $product) : mixed
Parameters
- $product : mixed
getProductSaleHistory()
protected
getProductSaleHistory(mixed $product[, mixed $multiple = 1 ]) : mixed
Parameters
- $product : mixed
- $multiple : mixed = 1
getProductsDispoHistory()
protected
getProductsDispoHistory() : mixed
getSaleCanceled()
protected
getSaleCanceled(mixed $saleId) : mixed
Parameters
- $saleId : mixed
getSaleProductCanceled()
protected
getSaleProductCanceled(mixed $saleId, mixed $sku) : mixed
Parameters
- $saleId : mixed
- $sku : mixed
getSaleProductUpdate()
protected
getSaleProductUpdate(mixed $saleProductId, mixed $productId) : mixed
Parameters
- $saleProductId : mixed
- $productId : mixed
getSaleProductUpdateByCurrentProduct()
protected
getSaleProductUpdateByCurrentProduct(mixed $product) : mixed
Parameters
- $product : mixed
getSaleProductUpdateByCurrentProductHistory()
protected
getSaleProductUpdateByCurrentProductHistory(mixed $product[, int $multiple = 1 ]) : mixed
Parameters
- $product : mixed
- $multiple : int = 1
getSaleQtyChange()
protected
getSaleQtyChange(mixed $saleId, mixed $product) : array<string|int, mixed>|false
Parameters
- $saleId : mixed
- $product : mixed
Return values
array<string|int, mixed>|falsegetSalesByProduct()
protected
getSalesByProduct(mixed $product) : mixed
Parameters
- $product : mixed
getUserId()
protected
getUserId(mixed $string) : mixed|null
Parameters
- $string : mixed
Return values
mixed|nullinitTmpTables()
create TEMP table for calculation
protected
initTmpTables() : mixed
insertNewProductInventoryQtyLog()
protected
insertNewProductInventoryQtyLog() : mixed
insertNewProductQtyLog()
protected
insertNewProductQtyLog() : mixed
insertOldLog()
protected
insertOldLog(mixed $product[, string $date = '' ]) : mixed
Parameters
- $product : mixed
- $date : string = ''
populateTmpTable()
Populate TEMP table for calculation
protected
populateTmpTable([bool $clean = false ]) : void
Parameters
- $clean : bool = false
processHistory()
protected
processHistory([mixed $product = null ]) : mixed
Parameters
- $product : mixed = null
Tags
processInventory()
protected
processInventory() : mixed
processProductInventory()
protected
processProductInventory(mixed $product, mixed $inventoryProductQty, mixed $date) : mixed
Parameters
- $product : mixed
- $inventoryProductQty : mixed
- $date : mixed
processQty()
protected
processQty() : mixed
productLogProcessing()
protected
productLogProcessing() : mixed
setQuantityForProduct()
protected
setQuantityForProduct(mixed $pId, int $qty) : mixed
Parameters
- $pId : mixed
- $qty : int
updateProductNullInventoryQty()
protected
updateProductNullInventoryQty() : mixed
updateProductsQty()
protected
updateProductsQty() : mixed