mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
export pending order should not export order with refund in progress
This commit is contained in:
+5
-1
@@ -386,7 +386,11 @@ Route::get('/segments', function (Request $request) {
|
||||
})->name('segments');
|
||||
|
||||
Route::get('/pending_orders', function(){
|
||||
$payments = Transaction::where('type', TransactionType::PAYMENT)->where('owner_type', Booking::class)->whereIn('status', [ApprovalStatus::APPROVED])->get();
|
||||
$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]);
|
||||
})
|
||||
->get();
|
||||
|
||||
echo '<table>';
|
||||
$i = 0;
|
||||
|
||||
Reference in New Issue
Block a user