From d8fdf02417789fdeee3ab849d8a6b0b7c5548f41 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 16 Feb 2026 15:14:46 +0530 Subject: [PATCH] Changed logic in export of production plan --- app/Exports/ProductionPlanExport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Exports/ProductionPlanExport.php b/app/Exports/ProductionPlanExport.php index c464ec1..92a4eca 100644 --- a/app/Exports/ProductionPlanExport.php +++ b/app/Exports/ProductionPlanExport.php @@ -51,7 +51,8 @@ class ProductionPlanExport implements FromArray, WithHeadings, WithMapping // Add daily target and produced quantity for each date foreach ($this->dates as $date) { - $mapped[] = $row['daily_target'] ?? 0; + // $mapped[] = $row['daily_target_dynamic'] ?? 0; + $mapped[] = $row['daily_target_dynamic'][$date] ?? '-'; $mapped[] = $row['produced_quantity'][$date] ?? 0; } -- 2.49.1