diff --git a/routes/web.php b/routes/web.php index 0395df3f..80725e55 100644 --- a/routes/web.php +++ b/routes/web.php @@ -417,7 +417,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, ApprovalStatus::APPROVED]); + return $query->where('type', TransactionType::REFUND)->whereIn('status', [ApprovalStatus::PENDING_SUBMISSION, ApprovalStatus::PENDING_VERIFICATION]); }) ->whereDoesntHave('transactions', function ($transaction) { $transaction->whereHas('groupTransaction');