add remark to yd address on release

This commit is contained in:
omair saleh
2022-02-15 11:30:43 +08:00
parent 552b6f0e1e
commit 753951a1d2
2 changed files with 2 additions and 1 deletions
@@ -71,6 +71,7 @@ class UpdatePackingListStatusLogic extends AbstractControllerLogic
$packing_list = $this->updatesPackingListStatus->execute($packingList, $request->route('status'));
$address = $packing_list->owner()->first()->addresses()->first();
dd($address);
$appointee = $address->owner->orderRoles()->where('role_id', '=', OrderRoleTypes::ORIGIN_FREIGHT_FORWARDER)->first()->appointee->id;
$appointee === 2 ? $this->updateDoFromVTPortalProcessor->execute($address) : $this->updateDoFromYDPortalProcessor->execute($address);