mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-22 05:54:08 +00:00
update packinglists from vt portal jobs and schedule
This commit is contained in:
-4
@@ -162,14 +162,12 @@ class FetchLoadedContainersFromVTPortalProcessor
|
||||
$marking = explode('/', explode('CIEF/', $packingList[13])[1]);
|
||||
|
||||
if(!array_key_exists(1, $marking)){
|
||||
Log::error('unknown order number');
|
||||
continue;
|
||||
}
|
||||
|
||||
$orderNumber = $marking[1];
|
||||
|
||||
if(!$packingList[22]){
|
||||
Log::error('no quantity');
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -177,7 +175,6 @@ class FetchLoadedContainersFromVTPortalProcessor
|
||||
/** @var Order $order */
|
||||
$order = $this->fetchesOrder->execute(['reference' => $orderNumber]);
|
||||
} catch (ResourceNotFoundException $exception){
|
||||
Log::error('order doesnt exist');
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -206,7 +203,6 @@ class FetchLoadedContainersFromVTPortalProcessor
|
||||
|
||||
/** @var PackingList $packingList */
|
||||
$packingList = $this->createPackingListProcessor->execute($packingListObject, $order);
|
||||
Log::error($packingList);
|
||||
$container->packingLists()->attach($packingList);
|
||||
|
||||
foreach($contractObligations as $obligation) {
|
||||
|
||||
Reference in New Issue
Block a user