1
0
forked from poc/pds

Enhance InvoiceDataMail to accept a dynamic subject and update SendInvoiceDataReport command accordingly

This commit is contained in:
dhanabalan
2025-11-11 09:32:46 +05:30
parent 26ad8b2ed8
commit 9eaf86d347
3 changed files with 14 additions and 8 deletions

View File

@@ -201,7 +201,9 @@ class SendInvoiceDataReport extends Command
})
->toArray();
$mail = new InvoiceDataMail($scheduleType, $tableData);
$mailSubject = "Invoice Data Report ({$plant->name})";
$mail = new InvoiceDataMail($scheduleType, $tableData, $mailSubject);
$contentVars = $mail->content()->with;
$this->info($contentVars['greeting'] ?? 'Invoice Data Report');