Update invoice email subject to include STO invoice reference
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user