fix vt packing list api

This commit is contained in:
omair saleh
2022-07-19 16:45:44 +08:00
parent 42935d025d
commit bdb81daf1a
@@ -239,7 +239,7 @@ class FetchLoadedContainersFromVTPortalProcessor
$deliveryDate = Carbon::parse($package[1] ? $package[1]:$package[2]);
try {
$packingList = $this->fetchesPackingList->execute(['reference' => $packingListReference]);
$packingList = $this->fetchesPackingList->execute(['reference' => $packingListReference, 'type', PackingListType::SHIPPING_PACKING_LIST]);
$container->packingLists()->detach($packingList);
$container->packingLists()->attach($packingList);
} catch (ResourceNotFoundException $exception){