mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
E-Invoice - One time processing to generate normal invoice for July 2025 (second run)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user