GeodisService
in package
Table of Contents
Properties
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $logService : LogServiceInterface
- $productService : ProductService
- $saleProductService : SaleProductService|object
- $eventDispatcher : EventDispatcherInterface
- $geodisApi : GeodisApi|object
- $saleLogService : SaleLogService
- $saleProductShipmentService : SaleProductShipmentService
- $saleProductShipmentTrackingService : SaleProductShipmentTrackingService
- $saleService : SaleService|object
- $userService : UserService
Methods
- __construct() : mixed
- QueueService constructor.
- createSaleProductPreShipmentForCalberson() : bool
- createSaleProductShipment() : true
- generateSaleListEnvoi() : array<string|int, mixed>
- Get palettes Number
- generateSaleListEnvoiForParts() : array<string|int, mixed>
- Get palettes Number
- generateSaleListEnvoiTest() : array<string|int, mixed>
- Get palettes Number
- getErrorMessageByCode() : string
- saveGeodisEtiquette() : string
- saveGeodisSlipFile() : string
- sendExpeditionToGeodis() : mixed
- Send Expedition to geodis
- validateGeodisExpedition() : mixed
- Validate geodis expedition
- createSaleProductShipmentRecord() : SaleProductShipment
- createSaleProductShipmentTrackingRecord() : void
- dispatchSaleProductsAfterTicketPrintedEvent() : void
- dispatchSaleProductsShippedEvent() : void
- finalizeSale() : void
- logShipment() : void
- processShipment() : void
- updateSaleProductStatus() : void
Properties
$container
protected
ContainerInterface
$container
$entityManager
protected
EntityManagerInterface
$entityManager
$logService
protected
LogServiceInterface
$logService
$productService
protected
ProductService
$productService
$saleProductService
protected
SaleProductService|object
$saleProductService
$eventDispatcher
private
EventDispatcherInterface
$eventDispatcher
$geodisApi
private
GeodisApi|object
$geodisApi
$saleLogService
private
SaleLogService
$saleLogService
$saleProductShipmentService
private
SaleProductShipmentService
$saleProductShipmentService
$saleProductShipmentTrackingService
private
SaleProductShipmentTrackingService
$saleProductShipmentTrackingService
$saleService
private
SaleService|object
$saleService
$userService
private
UserService
$userService
Methods
__construct()
QueueService constructor.
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager, LogServiceInterface $logService, EventDispatcherInterface $eventDispatcher) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $logService : LogServiceInterface
- $eventDispatcher : EventDispatcherInterface
createSaleProductPreShipmentForCalberson()
public
createSaleProductPreShipmentForCalberson(mixed $saleProductIds, mixed $noSuivi, mixed $userId[, mixed $ticketPath = null ][, mixed $slipPath = null ][, mixed $shipmentInfos = [] ]) : bool
Parameters
- $saleProductIds : mixed
- $noSuivi : mixed
- $userId : mixed
- $ticketPath : mixed = null
- $slipPath : mixed = null
- $shipmentInfos : mixed = []
Return values
boolcreateSaleProductShipment()
public
createSaleProductShipment(array<string|int, int> $saleProductIds[, int|string|null $userId = null ][, bool $logChanges = false ][, bool $notify = true ]) : true
Parameters
- $saleProductIds : array<string|int, int>
- $userId : int|string|null = null
- $logChanges : bool = false
- $notify : bool = true
Tags
Return values
truegenerateSaleListEnvoi()
Get palettes Number
public
generateSaleListEnvoi(Sale $sale, mixed $items[, array<string|int, mixed> $paletteNumber = [] ][, array<string|int, mixed> $ordersColisNumber = [] ][, DateTime|null $fromDateTime = null ][, mixed $warehouse = 1 ]) : array<string|int, mixed>
Parameters
- $sale : Sale
- $items : mixed
- $paletteNumber : array<string|int, mixed> = []
- $ordersColisNumber : array<string|int, mixed> = []
- $fromDateTime : DateTime|null = null
- $warehouse : mixed = 1
Tags
Return values
array<string|int, mixed>generateSaleListEnvoiForParts()
Get palettes Number
public
generateSaleListEnvoiForParts(Sale $sale, SaleProduct $saleProduct, mixed $listUmgs[, mixed $warehouse = 1 ]) : array<string|int, mixed>
Parameters
- $sale : Sale
- $saleProduct : SaleProduct
- $listUmgs : mixed
- $warehouse : mixed = 1
Tags
Return values
array<string|int, mixed>generateSaleListEnvoiTest()
Get palettes Number
public
generateSaleListEnvoiTest(Sale $sale, mixed $items[, array<string|int, mixed> $paletteNumber = [] ][, array<string|int, mixed> $ordersColisNumber = [] ][, DateTime|null $fromDateTime = null ], mixed $poidsTotal, mixed $volumeTotal) : array<string|int, mixed>
Parameters
- $sale : Sale
- $items : mixed
- $paletteNumber : array<string|int, mixed> = []
- $ordersColisNumber : array<string|int, mixed> = []
- $fromDateTime : DateTime|null = null
- $poidsTotal : mixed
- $volumeTotal : mixed
Tags
Return values
array<string|int, mixed>getErrorMessageByCode()
public
static getErrorMessageByCode(mixed $errorCode) : string
Parameters
- $errorCode : mixed
Return values
stringsaveGeodisEtiquette()
public
saveGeodisEtiquette(mixed $data, array<string|int, mixed> $spIds) : string
Parameters
- $data : mixed
- $spIds : array<string|int, mixed>
Return values
stringsaveGeodisSlipFile()
public
saveGeodisSlipFile(mixed $data, array<string|int, mixed> $spIds) : string
Parameters
- $data : mixed
- $spIds : array<string|int, mixed>
Return values
stringsendExpeditionToGeodis()
Send Expedition to geodis
public
sendExpeditionToGeodis(mixed $data, mixed $warehouseId) : mixed
Parameters
- $data : mixed
- $warehouseId : mixed
validateGeodisExpedition()
Validate geodis expedition
public
validateGeodisExpedition(mixed $data, mixed $warehouse) : mixed
Parameters
- $data : mixed
- $warehouse : mixed
createSaleProductShipmentRecord()
private
createSaleProductShipmentRecord(SaleProduct $sp, mixed $user, DateTime $now) : SaleProductShipment
Parameters
- $sp : SaleProduct
- $user : mixed
- $now : DateTime
Tags
Return values
SaleProductShipmentcreateSaleProductShipmentTrackingRecord()
private
createSaleProductShipmentTrackingRecord(SaleProduct $sp, DateTime $now, SaleProductShipment $saleProductShipment) : void
Parameters
- $sp : SaleProduct
- $now : DateTime
- $saleProductShipment : SaleProductShipment
dispatchSaleProductsAfterTicketPrintedEvent()
private
dispatchSaleProductsAfterTicketPrintedEvent(SaleProductShipment $saleProductShipment) : void
Parameters
- $saleProductShipment : SaleProductShipment
dispatchSaleProductsShippedEvent()
private
dispatchSaleProductsShippedEvent(array<string|int, mixed> $saleProductIds) : void
Parameters
- $saleProductIds : array<string|int, mixed>
finalizeSale()
private
finalizeSale(Sale $sale, DateTime $now, bool $logChanges, mixed $user) : void
Parameters
- $sale : Sale
- $now : DateTime
- $logChanges : bool
- $user : mixed
Tags
logShipment()
private
logShipment(Sale $sale, bool $shipmentId, SaleProduct $sp, mixed $user) : void
Parameters
- $sale : Sale
- $shipmentId : bool
- $sp : SaleProduct
- $user : mixed
Tags
processShipment()
private
processShipment(SaleProduct $sp, Sale $sale, mixed $user, bool $notify) : void
Parameters
- $sp : SaleProduct
- $sale : Sale
- $user : mixed
- $notify : bool
Tags
updateSaleProductStatus()
private
updateSaleProductStatus(SaleProduct $sp, DateTime $now) : void
Parameters
- $sp : SaleProduct
- $now : DateTime