confirm yd orders for release in china

This commit is contained in:
omair saleh
2022-01-25 12:11:33 +08:00
parent 763cc2d38c
commit bd5e89e832
@@ -254,6 +254,13 @@ class FetchOrderListsFromYdPortalProcessor
$this->createPackageProcessor->execute($packageObject, $packingList);
}
$marking = $order->companyModule->inviters()->withPivot('invitee_reference')->first()->pivot->invitee_reference;
if(!in_array($marking, ['2192KAA', '2353GFE', '6866DTR', '153DSR', '1291NSC', '8288MIB'])){
$this->fetchesDataFRomYDPortal->clientRequest('http://www.yd-wl.com/api/confirmsendorder.ashx', 'GET', [
'expressno' => $row->expressno
]);
}
if($containerReference) {
try {
$container = $this->fetchesContainer->execute(['reference' => $containerReference]);