From 5601bde96a026c28b496745ef4db2c882e134065 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Wed, 6 Aug 2025 22:00:22 +0800 Subject: [PATCH] E-Invoice - One time processing to generate normal invoice for July 2025 (second run) --- .../Commands/V2/OneTimeBatchProcessEInvoicesV2Command.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/V2/OneTimeBatchProcessEInvoicesV2Command.php b/app/Console/Commands/V2/OneTimeBatchProcessEInvoicesV2Command.php index f47ffd03..92c344cb 100644 --- a/app/Console/Commands/V2/OneTimeBatchProcessEInvoicesV2Command.php +++ b/app/Console/Commands/V2/OneTimeBatchProcessEInvoicesV2Command.php @@ -48,7 +48,7 @@ class OneTimeBatchProcessEInvoicesV2Command extends Command */ public function handle() { - return; + // return; $startDate = Carbon::create(2025, 7, 1)->startOfDay(); $endDate = Carbon::create(2025, 7, 31)->endOfDay(); @@ -69,7 +69,8 @@ class OneTimeBatchProcessEInvoicesV2Command extends Command $normalInvoice = $booking->documents()->where('document_type', DocumentType::INVOICE)->first(); $eInvoice = $booking->documents()->where('document_type', DocumentType::EINVOICE)->first(); - if($firstInvoice && !$normalInvoice && !$eInvoice){ + // if($firstInvoice && !$normalInvoice && !$eInvoice){ + if(!$firstInvoice && !$normalInvoice && !$eInvoice){ OneTimeBatchProcessEInvoicesV2CommandJob::dispatch($booking); $count++; Log::info('Processed: ' . $count);