fix yd delivery address update api

This commit is contained in:
omair saleh
2022-01-27 12:55:16 +08:00
parent 5d9a08ea0b
commit a60ab688da
@@ -42,6 +42,11 @@ class UpdateDoFromYDPortalProcessor
->orderBy('id', 'desc')->get();
foreach ($packing_list as $key => $row) {
if ($packing_list->status === ApprovalStatus::SUSPENDED) {
continue;
}
$contact = $address->contacts()->first();
$phone = $contact ? $contact->phone : null;