Changed logic in export of production plan #185
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user