From f39ac5ee2fcd2d07f03b65ed2bf0807d2eb3321c Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 13 Nov 2025 17:35:27 +0530 Subject: [PATCH] Update invoice email subject to include STO invoice reference --- app/Console/Commands/SendInvoiceDataReport.php | 5 ++++- app/Mail/InvoiceDataMail.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/SendInvoiceDataReport.php b/app/Console/Commands/SendInvoiceDataReport.php index 415ef1e..c633dc1 100644 --- a/app/Console/Commands/SendInvoiceDataReport.php +++ b/app/Console/Commands/SendInvoiceDataReport.php @@ -34,6 +34,9 @@ class SendInvoiceDataReport extends Command */ public function handle() { + // ini_set('max_execution_time', 0); // disable limit + // set_time_limit(0); + $scheduleType = $this->argument('schedule_type'); $plantId = (int) $this->argument('plant'); @@ -203,7 +206,7 @@ class SendInvoiceDataReport extends Command }) ->toArray(); - $mailSubject = "Despatch Pending Sale Invoice ({$plant->name})"; + $mailSubject = "Despatch Pending Sale Invoice & STO Invoice as on Date ({$plant->name})"; $mail = new InvoiceDataMail($scheduleType, $tableData, $mailSubject); $contentVars = $mail->content()->with; diff --git a/app/Mail/InvoiceDataMail.php b/app/Mail/InvoiceDataMail.php index 82d5285..d6b61b4 100644 --- a/app/Mail/InvoiceDataMail.php +++ b/app/Mail/InvoiceDataMail.php @@ -27,7 +27,7 @@ class InvoiceDataMail extends Mailable { $this->scheduleType = $scheduleType; $this->tableData = $tableData ?? []; - $this->mailSubject = $mailSubject ?? 'Despatch Pending Sale Invoice'; + $this->mailSubject = $mailSubject ?? 'Despatch Pending Sale Invoice & STO Invoice as on Date'; } /**