debug release button

This commit is contained in:
omair saleh
2022-03-01 20:14:40 +08:00
parent 87d7a7572f
commit 9ab0133e00
@@ -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));
}