fix yd fetch data

This commit is contained in:
omair saleh
2022-01-04 20:41:31 +08:00
parent 6a381446bc
commit 8052ae3a11
@@ -206,7 +206,7 @@ class FetchOrderListsFromYdPortalProcessor
$packingListReference = $row->expressno;
try{
$packingList = $this->fetchesPackingList->execute(['reference' => $row->expressno, 'type' => PackingListType::SHIPPING_PACKING_LIST]);
$packingList = $this->fetchesPackingList->execute(['reference' => $row->expressno]);
} catch (ResourceNotFoundException $exception){
$warehouseReceiveObject = new PackingListObject($packingListReference, $order->orderRoles()->where('role_id', '=', OrderRoleTypes::ORIGIN_FREIGHT_FORWARDER)->first()->appointee->id, PackingListType::WAREHOUSE_RECEIVE_LIST, ApprovalStatus::APPROVED);
@@ -261,7 +261,7 @@ class FetchOrderListsFromYdPortalProcessor
}
$container->packingLists()->detach($packingList);
$container->packingLists()->attach($packingList);
// $container->packingLists()->attach($packingList);
$transport = $container->transports()->first();