Logidav Docs

SaleExpeditionExportTruskCommand extends ContainerAwareCommand
in package
uses LockableTrait

Class SaleExpeditionExportCommand

Table of Contents

Constants

MAX_PARCEL_SLOTS  = 5
TRUSK_EMAIL_FILE_NOT_GENERATED_NOTIFY_LIST  = ['marouen.hattab@gmail.com', 'technique.menzzo@gmail.com']
TRUSK_LOGISTIC_NOTIFY_LIST  = ['logistique2@trusk.com', 'julien.maquaire@trusk.com', 'marouen.hattab@gmail.com', 'technique.menzzo@gmail.com']

Properties

$shipmentService  : ShipmentService|null

Methods

__construct()  : mixed
replaceSpecialCaracters()  : mixed
configure()  : mixed
Configure command
execute()  : void
buildCsvRow()  : array<int, string>|null
buildPackagesForSaleProduct()  : array<int, array<string, mixed>>
connect()  : SFTP
Connecting by sftp
formatDecimal()  : string
getCsvHeader()  : array<int, string>
getShipmentService()  : ShipmentService
getTruskCsvConfig()  : mixed
getTruskSaleProducts()  : mixed
normalizePhone()  : string
normalizeString()  : string
parseTimeRange()  : array{0: string|null, 1: string|null}
sendFile()  : bool
sendMail()  : bool

Constants

TRUSK_EMAIL_FILE_NOT_GENERATED_NOTIFY_LIST

private mixed TRUSK_EMAIL_FILE_NOT_GENERATED_NOTIFY_LIST = ['marouen.hattab@gmail.com', 'technique.menzzo@gmail.com']

TRUSK_LOGISTIC_NOTIFY_LIST

private mixed TRUSK_LOGISTIC_NOTIFY_LIST = ['logistique2@trusk.com', 'julien.maquaire@trusk.com', 'marouen.hattab@gmail.com', 'technique.menzzo@gmail.com']

Properties

Methods

execute()

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

getTruskCsvConfig()

private getTruskCsvConfig(string $key[, mixed $default = null ]) : mixed
Parameters
$key : string
$default : mixed = null

parseTimeRange()

private parseTimeRange(string|null $range) : array{0: string|null, 1: string|null}
Parameters
$range : string|null
Return values
array{0: string|null, 1: string|null}

sendFile()

private sendFile(string $localFile, mixed $fileName) : bool
Parameters
$localFile : string
$fileName : mixed
Return values
bool

        
On this page

Search results