diff --git a/routes/web.php b/routes/web.php index 2c4af1f5..12269a21 100644 --- a/routes/web.php +++ b/routes/web.php @@ -398,7 +398,7 @@ Route::get('/segments', function (Request $request) { Route::get('/pending_orders', function(){ $payments = Transaction::where('type', TransactionType::PAYMENT)->where('owner_type', Booking::class)->whereIn('status', [ApprovalStatus::APPROVED]) ->whereDoesntHave('transactions', function ($query) { - return $query->where('type', TransactionType::REFUND)->whereIn('status', [ApprovalStatus::PENDING_SUBMISSION, ApprovalStatus::PENDING_VERIFICATION]); + return $query->where('type', TransactionType::REFUND)->whereIn('status', [ApprovalStatus::PENDING_SUBMISSION, ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]); }) ->get();