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