From 9b87f26ca3935a97e6a64b1d5d31ee61ae0f1d42 Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Wed, 9 Nov 2022 11:56:43 +0800 Subject: [PATCH] re-release yd paid orders --- routes/web.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/routes/web.php b/routes/web.php index 7924c275..d69083cc 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,11 +1,13 @@ Outstanding: '.($totalBilled - $totalPaid).''; }); + +Route::get('/yd/fix', function(){ + $packingLists = \App\Models\PackingList::where('type', \App\Classes\ValueObjects\Constants\PackingListType::SHIPPING_PACKING_LIST)->where('status', \App\Classes\ValueObjects\Constants\ApprovalStatus::APPROVED)->where('claimant_i', 2307)->get(); + $i = 0; + echo count($packingLists).'

'; + foreach ($packingLists as $packingList){ + try { + (App()->make(UpdateDoFromYDPortalProcessor::class))->execute($packingList); + echo 'success'.'
'; + } catch (\Exception $exception){ + echo ''.$packingList->reference.''; + } + + } +}); + +