fix refunded bookings

This commit is contained in:
edmondlang
2023-08-19 17:07:34 +08:00
parent 85682905e4
commit f35bc37f72
@@ -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();