Update greeting and report period messages in InvoiceDataMail for clarity and consistency
This commit is contained in:
@@ -41,12 +41,12 @@ class InvoiceDataMail extends Mailable
|
|||||||
*/
|
*/
|
||||||
public function content(): Content
|
public function content(): Content
|
||||||
{
|
{
|
||||||
$greeting = "Dear Sir/Madam,<br><br>Kindly find the attached invoice pending report status,";
|
$greeting = 'Dear Sir/Madam,<br><br>We are sending here with list of "Despatch pending sale invoice & STO invoice as on date"';
|
||||||
|
|
||||||
if ($this->scheduleType == 'Daily') {
|
if ($this->scheduleType == 'Daily') {
|
||||||
$fromDate = (new DateTime('yesterday 10:00'))->format('d/m/Y H:i') . ':000';//08:00
|
$fromDate = (new DateTime('yesterday 10:00'))->format('d/m/Y H:i') . ':000';//08:00
|
||||||
$toDate = (new DateTime('today 09:59'))->format('d/m/Y H:i') . ':999';//07:59
|
$toDate = (new DateTime('today 09:59'))->format('d/m/Y H:i') . ':999';//07:59
|
||||||
$reportPeriod = "The following report presents results from: $fromDate to $toDate.";
|
$reportPeriod = "from: $fromDate to $toDate. <br><br>Please arrange to despatch the same immediately.";
|
||||||
$greeting .= $reportPeriod;
|
$greeting .= $reportPeriod;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55,14 +55,14 @@ class InvoiceDataMail extends Mailable
|
|||||||
$fromHour = $now->copy()->subHour()->format('H:i:s');
|
$fromHour = $now->copy()->subHour()->format('H:i:s');
|
||||||
$toHour = $now->format('H:i:s');
|
$toHour = $now->format('H:i:s');
|
||||||
$reportDate = $now->format('d/m/Y');
|
$reportDate = $now->format('d/m/Y');
|
||||||
$greeting .= "The following report presents results from: $reportDate, $fromHour to $toHour.";
|
$greeting .= "from: $reportDate, $fromHour to $toHour. <br><br>Please arrange to despatch the same immediately.";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->scheduleType == 'Live') {
|
if ($this->scheduleType == 'Live') {
|
||||||
$now = now();
|
$now = now();
|
||||||
$fromMinute = $now->copy()->subMinute()->format('d/m/Y H:i:s');
|
$fromMinute = $now->copy()->subMinute()->format('d/m/Y H:i:s');
|
||||||
$toMinute = $now->format('d/m/Y H:i:s');
|
$toMinute = $now->format('d/m/Y H:i:s');
|
||||||
$greeting .= "The following report presents results from: $fromMinute to $toMinute.";
|
$greeting .= "from: $fromMinute to $toMinute. <br><br>Please arrange to despatch the same immediately.";
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Content(
|
return new Content(
|
||||||
|
|||||||
Reference in New Issue
Block a user