From 50352bff9b608b224f209ee623b3847bce29e9cd Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Thu, 5 Dec 2024 17:18:55 +0530 Subject: [PATCH] stock changes-last vadivel J 05-12-2024 --- app/Views/factoryDieselMachineDetails.php | 38 ++++- app/Views/gasStockDetails.php | 13 -- app/Views/powerConsumptionDetails.php | 34 +++- app/Views/resinStockDetails.php | 181 +++++++++++++++++++--- 4 files changed, 219 insertions(+), 47 deletions(-) diff --git a/app/Views/factoryDieselMachineDetails.php b/app/Views/factoryDieselMachineDetails.php index 47bdfec2..9ce5c0dd 100644 --- a/app/Views/factoryDieselMachineDetails.php +++ b/app/Views/factoryDieselMachineDetails.php @@ -173,6 +173,34 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y'); + + + +modify('first day of this month')->format('Y-m-d'); +$endDate = $date->modify('last day of this month')->format('Y-m-d'); + +$datesInMonth = []; + + +$period = new DatePeriod( + new DateTime($startDate), + new DateInterval('P1D'), + (new DateTime($endDate))->modify('+1 day') +); + +foreach ($period as $day) { + $datesInMonth[] = $day->format('Y-m-d'); +} + +?> + + + +