mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-21 21:44:09 +00:00
remove delivery address postcode to yd to release goods from china
This commit is contained in:
@@ -353,20 +353,6 @@ class FetchOrderListsFromYdPortalProcessor
|
||||
if($order instanceof Order){
|
||||
$marking = $order->companyModule->inviters()->withPivot('invitee_reference')->first()->pivot->invitee_reference;
|
||||
if(!in_array($marking, ['2192KAA', '2353GFE', '6866DTR', '153DSR', '1291NSC', '8288MIB', '1152AAT', '962LOW', '3992WHE', '1290CSW', '9493TYS', '3397GSH'])){
|
||||
|
||||
$deliveryAddress = $order->addresses()->where('status', ApprovalStatus::APPROVED)->first();
|
||||
$this->fetchesDataFRomYDPortal->clientRequest(
|
||||
'http://www.yd-wl.com/api/UpdateOrderAddress.ashx',
|
||||
'POST',
|
||||
[
|
||||
'expressno' => $row->expressno,
|
||||
'customers_name' => 'n/a',
|
||||
'cellphone' => 'n/a',
|
||||
'postcode' => $deliveryAddress->postcode,
|
||||
'streetAddress' => 'Postcode: '.$deliveryAddress->postcode. ' | Please delete this address after loading the container, so we can update the actually delivery address.'
|
||||
|
||||
]);
|
||||
|
||||
$this->fetchesDataFRomYDPortal->clientRequest('http://www.yd-wl.com/api/confirmsendorder.ashx', 'GET', [
|
||||
'expressno' => $row->expressno
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user