1
0
forked from poc/pds

Revoked logic of production mail report

This commit is contained in:
dhanabalan
2026-10-12 16:56:22 +05:30
parent b378404f32
commit 6167f865bf
2 changed files with 8 additions and 10 deletions

View File

@@ -57,14 +57,14 @@ class SendProductionReport extends Command
// $startDate = now()->setTime(8, 0, 0);
// $endDate = now()->copy()->addDay()->setTime(8, 0, 0);
// if (strtolower($scheduleType) == 'daily') {
// $startDate = now()->subDay()->setTime(8, 0, 0);
// $endDate = now()->setTime(8, 0, 0);
// }
if (strtolower($scheduleType) == 'daily') {
$startDate = now()->subDays(2)->setTime(8, 0, 0);
$endDate = now()->subDay()->setTime(8, 0, 0);
$startDate = now()->subDay()->setTime(8, 0, 0);
$endDate = now()->setTime(8, 0, 0);
}
// if (strtolower($scheduleType) == 'daily') {
// $startDate = now()->subDays(2)->setTime(8, 0, 0);
// $endDate = now()->subDay()->setTime(8, 0, 0);
// }
else {
$startDate = now()->setTime(8, 0, 0);
$endDate = now()->copy()->addDay()->setTime(8, 0, 0);