changed report from date and to date in production mail
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Successful in 4m1s
Laravel Larastan / larastan (pull_request) Failing after 6m0s

This commit is contained in:
dhanabalan
2026-10-12 16:51:04 +05:30
parent 66c64227b0
commit b378404f32

View File

@@ -72,8 +72,10 @@ class ProductionMail extends Mailable
$greeting = "Dear Sir/Madam,<br><br>Kindly find the attached production report status details for the 'Target Quantity' and 'Production Quantity' count,";
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 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('2 days ago 08:00'))->format('d/m/Y H:i') . ':000';
$toDate = (new DateTime('yesterday 07:59'))->format('d/m/Y H:i') . ':999';
$reportPeriod = "The following report presents results from: $fromDate to $toDate.";
$greeting .= $reportPeriod;
}