Update invoice email subject to include STO invoice reference

This commit is contained in:
dhanabalan
2025-11-13 17:35:27 +05:30
parent fa05a667b1
commit f39ac5ee2f
2 changed files with 5 additions and 2 deletions

View File

@@ -34,6 +34,9 @@ class SendInvoiceDataReport extends Command
*/ */
public function handle() public function handle()
{ {
// ini_set('max_execution_time', 0); // disable limit
// set_time_limit(0);
$scheduleType = $this->argument('schedule_type'); $scheduleType = $this->argument('schedule_type');
$plantId = (int) $this->argument('plant'); $plantId = (int) $this->argument('plant');
@@ -203,7 +206,7 @@ class SendInvoiceDataReport extends Command
}) })
->toArray(); ->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); $mail = new InvoiceDataMail($scheduleType, $tableData, $mailSubject);
$contentVars = $mail->content()->with; $contentVars = $mail->content()->with;

View File

@@ -27,7 +27,7 @@ class InvoiceDataMail extends Mailable
{ {
$this->scheduleType = $scheduleType; $this->scheduleType = $scheduleType;
$this->tableData = $tableData ?? []; $this->tableData = $tableData ?? [];
$this->mailSubject = $mailSubject ?? 'Despatch Pending Sale Invoice'; $this->mailSubject = $mailSubject ?? 'Despatch Pending Sale Invoice & STO Invoice as on Date';
} }
/** /**