Changed logic in export of production plan #185

Merged
jothi merged 1 commits from ranjith-dev into master 2026-02-16 09:45:02 +00:00

View File

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