From b378404f32f1a5c0eb6f65be07b26c4d775413fa Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 12 Oct 2026 16:51:04 +0530 Subject: [PATCH] changed report from date and to date in production mail --- app/Mail/ProductionMail.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Mail/ProductionMail.php b/app/Mail/ProductionMail.php index 63fd6947..10bd5f42 100644 --- a/app/Mail/ProductionMail.php +++ b/app/Mail/ProductionMail.php @@ -72,8 +72,10 @@ class ProductionMail extends Mailable $greeting = "Dear Sir/Madam,

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; }