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);