diff --git a/app/Console/Commands/SendInvoiceDataReport.php b/app/Console/Commands/SendInvoiceDataReport.php
index 774b23b..a06d615 100644
--- a/app/Console/Commands/SendInvoiceDataReport.php
+++ b/app/Console/Commands/SendInvoiceDataReport.php
@@ -80,8 +80,8 @@ class SendInvoiceDataReport extends Command
}
if (strtolower($scheduleType) == 'daily') {
- $startDate = now()->subDay()->setTime(8, 0, 0);
- $endDate = now()->setTime(8, 0, 0);
+ $startDate = now()->subDay()->setTime(10, 0, 0);//8:00
+ $endDate = now()->setTime(10, 0, 0);//10
} else {
$startDate = now()->setTime(8, 0, 0);
$endDate = now()->copy()->addDay()->setTime(8, 0, 0);
diff --git a/app/Mail/InvoiceDataMail.php b/app/Mail/InvoiceDataMail.php
index 59f3c09..445b0c6 100644
--- a/app/Mail/InvoiceDataMail.php
+++ b/app/Mail/InvoiceDataMail.php
@@ -44,8 +44,8 @@ class InvoiceDataMail extends Mailable
$greeting = "Dear Sir/Madam,
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 [];
}
-
}