mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix refunded bookings
This commit is contained in:
@@ -462,7 +462,13 @@ Route::get('/refund/fix', function(){
|
||||
$notPlaced[] = $booking;
|
||||
continue;
|
||||
}
|
||||
|
||||
$bill = $payment->transactions()->where('type', TransactionType::BILL)->first();
|
||||
if(!$bill){
|
||||
$notPlaced[] = $booking;
|
||||
continue;
|
||||
}
|
||||
|
||||
if(in_array($bill->status, [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])){
|
||||
$completed[] = $booking;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user