From f35bc37f72b852224692fdb2f0938a7f9cc5cefc Mon Sep 17 00:00:00 2001 From: edmondlang Date: Sat, 19 Aug 2023 17:07:34 +0800 Subject: [PATCH] fix refunded bookings --- app/Console/Commands/DeleteOrderCommand.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/Console/Commands/DeleteOrderCommand.php b/app/Console/Commands/DeleteOrderCommand.php index 6f048ce3..849a0106 100644 --- a/app/Console/Commands/DeleteOrderCommand.php +++ b/app/Console/Commands/DeleteOrderCommand.php @@ -54,10 +54,6 @@ class DeleteOrderCommand extends Command if (!$booking) { $this->logOutput('Booking not found: ' . $reference); } else { - $booking->status = ApprovalStatus::APPROVED; - $booking->save(); - // $this->logOutput('Booking deleted: ' . $reference); - $payment = $booking->transactions() ->payments()->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED]) ->first();