From 9ab0133e00179b50de6b36450d7ef3f969965414 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 1 Mar 2022 20:14:40 +0800 Subject: [PATCH] debug release button --- .../ControllersLogic/UpdatePackingListStatusLogic.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Classes/Modules/PackingLists/ControllersLogic/UpdatePackingListStatusLogic.php b/app/Classes/Modules/PackingLists/ControllersLogic/UpdatePackingListStatusLogic.php index 1436a21b..19b70a55 100644 --- a/app/Classes/Modules/PackingLists/ControllersLogic/UpdatePackingListStatusLogic.php +++ b/app/Classes/Modules/PackingLists/ControllersLogic/UpdatePackingListStatusLogic.php @@ -74,9 +74,10 @@ class UpdatePackingListStatusLogic extends AbstractControllerLogic $address = $packing_list->owner()->first()->addresses()->where('status', ApprovalStatus::APPROVED)->first(); - $appointee = $address->owner->orderRoles()->where('role_id', '=', OrderRoleTypes::ORIGIN_FREIGHT_FORWARDER)->first()->appointee->id; - dd($appointee); - $appointee === 2 ? $this->updateDoFromVTPortalProcessor->execute($address) : $this->updateDoFromYDPortalProcessor->execute($address); +// $appointee = $address->owner->orderRoles()->where('role_id', '=', OrderRoleTypes::ORIGIN_FREIGHT_FORWARDER)->first()->appointee->id; + + $this->updateDoFromVTPortalProcessor->execute($address); + $this->updateDoFromYDPortalProcessor->execute($address); return $this->resourceResponse(new PackingListResource($packing_list)); }