From 7e9ffd67e2eb9c0ab0c86c3d6ac398a800702820 Mon Sep 17 00:00:00 2001 From: Aqqil Azman Date: Tue, 6 Aug 2024 19:40:25 +0800 Subject: [PATCH] rearrange the pending order based on account and PM's request --- routes/web.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index a7c87263..e5743ed5 100644 --- a/routes/web.php +++ b/routes/web.php @@ -400,6 +400,7 @@ Route::get('/pending_orders', function(){ ->whereDoesntHave('transactions', function ($query) { return $query->where('type', TransactionType::REFUND)->whereIn('status', [ApprovalStatus::PENDING_SUBMISSION, ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]); }) + ->orderBy('updated_at', 'desc') ->get(); echo ''; @@ -420,11 +421,11 @@ Route::get('/pending_orders', function(){ echo ''; echo ''; - echo ''; echo ''; + echo ''; echo ''; echo ''; - echo ''; + echo ''; echo ''; echo ''; echo '';
'.$payment->updated_at->format('d-M-y').''.$booking->marking.''.\App\Classes\ValueObjects\Constants\PaymentMethodType::PAYMENT_METHODS_ID[$payment->payment_method].''.$booking->company->reference.''.$payment->currency->short_code.''.number_format(bcsub($payment->amount, $refunds, 7), 5, '.', '').''.$booking->company->reference.''.$booking->marking.''.$payment->original_currency->short_code.''.number_format(bcsub($payment->original_amount, $original_refunds, 7), 5, '.', '').'