From c65780d4f1cec0d457538b1689bcd36952f29046 Mon Sep 17 00:00:00 2001 From: edmondlang Date: Wed, 6 Sep 2023 17:56:07 +0800 Subject: [PATCH] fix invoice --- routes/web.php | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/web.php b/routes/web.php index 9d425a91..bbd925ab 100644 --- a/routes/web.php +++ b/routes/web.php @@ -491,6 +491,7 @@ Route::get('/invoice/fix', function(){ Booking::where('status', ApprovalStatus::COMPLETED) ->whereDate('updated_at', '>=', Carbon::parse('01-01-2023')) + ->whereDate('created_at', '<', Carbon::parse('06-09-2023')) ->orderBy('id') ->chunk(100, function ($bookings) use ($processed_invoice){ foreach ($bookings as $booking) {