ProductStockValue0104202231082023Command
extends ContainerAwareCommand
in package
uses
LockableTrait
FinalYes
Class ProductStockValueCommand
Table of Contents
Properties
- $currencyService : CurrencyService|null
- $dbConnection : Connection
- $em : EntityManagerInterface
- $productStockValueService : ProductStockValueService
Methods
- __construct() : mixed
- ProductStockValueCommand constructor.
- configure() : mixed
- Configure command
- execute() : mixed
- getContainerForProduct() : array<string|int, mixed>
- get Container for product
- getQtyInTranzitForProductById() : array<string|int, mixed>
- get Container for shipped product
- getQtyInTranzitValueForProductById() : array<string|int, mixed>
- get Container for shipped product
- getRateDay() : mixed
- insertStockValueQtybyDate() : mixed
Properties
$currencyService
private
CurrencyService|null
$currencyService
$dbConnection
private
Connection
$dbConnection
$em
private
EntityManagerInterface
$em
$productStockValueService
private
ProductStockValueService
$productStockValueService
Methods
__construct()
ProductStockValueCommand constructor.
public
__construct([null $name = null ][, ProductStockValueService|null $productStockValueService = null ][, CurrencyService|null $currencyService = null ]) : mixed
Parameters
- $name : null = null
- $productStockValueService : ProductStockValueService|null = null
- $currencyService : CurrencyService|null = null
configure()
Configure command
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
getContainerForProduct()
get Container for product
private
getContainerForProduct(mixed $productId[, bool $beforeDate = false ][, mixed $currentContainerId = null ]) : array<string|int, mixed>
Parameters
- $productId : mixed
- $beforeDate : bool = false
- $currentContainerId : mixed = null
Tags
Return values
array<string|int, mixed>getQtyInTranzitForProductById()
get Container for shipped product
private
getQtyInTranzitForProductById(mixed $productId) : array<string|int, mixed>
Parameters
- $productId : mixed
Tags
Return values
array<string|int, mixed>getQtyInTranzitValueForProductById()
get Container for shipped product
private
getQtyInTranzitValueForProductById(mixed $product, mixed $date) : array<string|int, mixed>
Parameters
- $product : mixed
- $date : mixed
Tags
Return values
array<string|int, mixed>getRateDay()
private
getRateDay(mixed $day) : mixed
Parameters
- $day : mixed
insertStockValueQtybyDate()
private
insertStockValueQtybyDate(mixed $datetime) : mixed
Parameters
- $datetime : mixed