Update time settings (from 8 to 10) in SendInvoiceDataReport and InvoiceDataMail for daily schedule to improve report accuracy
This commit is contained in:
@@ -44,8 +44,8 @@ class InvoiceDataMail extends Mailable
|
||||
$greeting = "Dear Sir/Madam,<br><br>Kindly find the attached invoice pending report status,";
|
||||
|
||||
if ($this->scheduleType == 'Daily') {
|
||||
$fromDate = (new DateTime('yesterday 08:00'))->format('d/m/Y H:i') . ':000';
|
||||
$toDate = (new DateTime('today 07:59'))->format('d/m/Y H:i') . ':999';
|
||||
$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
|
||||
$reportPeriod = "The following report presents results from: $fromDate to $toDate.";
|
||||
$greeting .= $reportPeriod;
|
||||
}
|
||||
@@ -85,5 +85,4 @@ class InvoiceDataMail extends Mailable
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user