Update time settings (from 8 to 10) in SendInvoiceDataReport and InvoiceDataMail for daily schedule to improve report accuracy
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user