Logidav Docs

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

$entityManager

protected EntityManagerInterface $entityManager

$eventDispatcher

private EventDispatcherInterface $eventDispatcher

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
bool

createSaleProductShipment()

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
throws
GuzzleException
Return values
true

generateSaleListEnvoi()

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
throws
ORMException
throws
OptimisticLockException
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
throws
ORMException
throws
OptimisticLockException
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
throws
ORMException
throws
OptimisticLockException
Return values
array<string|int, mixed>

getErrorMessageByCode()

public static getErrorMessageByCode(mixed $errorCode) : string
Parameters
$errorCode : mixed
Return values
string

saveGeodisEtiquette()

public saveGeodisEtiquette(mixed $data, array<string|int, mixed> $spIds) : string
Parameters
$data : mixed
$spIds : array<string|int, mixed>
Return values
string

saveGeodisSlipFile()

public saveGeodisSlipFile(mixed $data, array<string|int, mixed> $spIds) : string
Parameters
$data : mixed
$spIds : array<string|int, mixed>
Return values
string

sendExpeditionToGeodis()

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

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
throws
GuzzleException

updateSaleProductStatus()

private updateSaleProductStatus(SaleProduct $sp, DateTime $now) : void
Parameters
$sp : SaleProduct
$now : DateTime
Tags
throws
ORMException
throws
OptimisticLockException

        
On this page

Search results