CalculateProductStockValueFromFileCommand
extends ContainerAwareCommand
in package
uses
LockableTrait
FinalYes
Class ImportProductPhysicalStockCommand
Table of Contents
Properties
- $currencyService : CurrencyService|null
- $dbConnection : Connection
- $em : EntityManagerInterface
- $manufacturerStockValueService : ManufacturerStockValueService|null
Methods
- __construct() : mixed
- ProductStockValueCommand constructor.
- configure() : mixed
- Configure command
- execute() : mixed
- calculateStockValue() : mixed
- calculateStockValueProductByContainer() : mixed
- calculateStockValueProductByContainerc1204() : mixed
- getContainersForProduct() : array<string|int, mixed>
- Get Containers for product
- getContainersForProductByContainers() : array<string|int, mixed>
- Get Containers for product
- getContainerValue() : mixed
- getExpeditionsBySku() : mixed
- log() : mixed
Properties
$currencyService
private
CurrencyService|null
$currencyService
$dbConnection
private
Connection
$dbConnection
$em
private
EntityManagerInterface
$em
$manufacturerStockValueService
private
ManufacturerStockValueService|null
$manufacturerStockValueService
Methods
__construct()
ProductStockValueCommand constructor.
public
__construct([null $name = null ][, ManufacturerStockValueService $manufacturerStockValueService = null ][, CurrencyService $currencyService = null ]) : mixed
Parameters
- $name : null = null
- $manufacturerStockValueService : ManufacturerStockValueService = null
- $currencyService : CurrencyService = null
configure()
Configure command
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
calculateStockValue()
private
calculateStockValue() : mixed
calculateStockValueProductByContainer()
private
calculateStockValueProductByContainer() : mixed
calculateStockValueProductByContainerc1204()
private
calculateStockValueProductByContainerc1204() : mixed
getContainersForProduct()
Get Containers for product
private
getContainersForProduct(mixed $productId) : array<string|int, mixed>
Parameters
- $productId : mixed
Tags
Return values
array<string|int, mixed>getContainersForProductByContainers()
Get Containers for product
private
getContainersForProductByContainers(mixed $productId, DateTime $from, DateTime $to[, mixed $status = 'arrived' ]) : array<string|int, mixed>
Parameters
- $productId : mixed
- $from : DateTime
- $to : DateTime
- $status : mixed = 'arrived'
Tags
Return values
array<string|int, mixed>getContainerValue()
private
getContainerValue(mixed $sku) : mixed
Parameters
- $sku : mixed
getExpeditionsBySku()
private
getExpeditionsBySku(mixed $sku, mixed $productId) : mixed
Parameters
- $sku : mixed
- $productId : mixed
log()
private
log(mixed $message) : mixed
Parameters
- $message : mixed