mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-30 01:43:59 +00:00
fix refunded bookings
This commit is contained in:
+1
-1
@@ -456,7 +456,7 @@ Route::get('/refund/fix', function(){
|
||||
$completed = [];
|
||||
|
||||
foreach ($bookings as $booking){
|
||||
$payments = $booking->transactions()->where('type', TransactionType::PAYMENT)->get();
|
||||
$payments = $booking->transactions()->where('type', TransactionType::PAYMENT)->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])->get();
|
||||
foreach ($payments as $payment){
|
||||
if($payment->status === ApprovalStatus::APPROVED){
|
||||
$notPlaced[] = $booking;
|
||||
|
||||
Reference in New Issue
Block a user