ExportProcessingSalesCommand
extends ContainerAwareCommand
in package
uses
LockableTrait
Table of Contents
Constants
- NOTIFY_LIST = ['amine.y@axelites.com', 'mohamed.hattab@axelites.com', 'technique.menzzo@gmail.com']
Properties
- $entityManager : EntityManagerInterface
Methods
- __construct() : mixed
- configure() : mixed
- execute() : int|null
- addSaleLogs() : mixed
- Add sale logs for exported orders using the SaleLogService
- sendEmailWithAttachment() : mixed
- Send email with exported file as attachment
- tagSaleProductsAsSent() : mixed
- Tag sale products as sent to supplier
Constants
NOTIFY_LIST
private
mixed
NOTIFY_LIST
= ['amine.y@axelites.com', 'mohamed.hattab@axelites.com', 'technique.menzzo@gmail.com']
Properties
$entityManager
private
EntityManagerInterface
$entityManager
Methods
__construct()
public
__construct([EntityManagerInterface|null $entityManager = null ]) : mixed
Parameters
- $entityManager : EntityManagerInterface|null = null
configure()
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int|null
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
int|nulladdSaleLogs()
Add sale logs for exported orders using the SaleLogService
private
addSaleLogs(array<string|int, mixed> $saleProductIds, string $fileName, OutputInterface $output) : mixed
Parameters
- $saleProductIds : array<string|int, mixed>
- $fileName : string
- $output : OutputInterface
sendEmailWithAttachment()
Send email with exported file as attachment
private
sendEmailWithAttachment(string $filePath, string $fileName, OutputInterface $output) : mixed
Parameters
- $filePath : string
- $fileName : string
- $output : OutputInterface
tagSaleProductsAsSent()
Tag sale products as sent to supplier
private
tagSaleProductsAsSent(array<string|int, mixed> $saleProductIds, OutputInterface $output) : mixed
Parameters
- $saleProductIds : array<string|int, mixed>
- $output : OutputInterface