Added production quantity report logic #1436

Merged
jothi merged 1 commits from ranjith-dev into master 2026-11-17 04:04:24 +00:00

View File

@@ -468,6 +468,14 @@ class SendProductionReport extends Command
}
if (strtolower($line->type) == 'base fg line') {
$productionQuantity = ProductionQuantity::where('plant_id', $plant->id)
->where('line_id', $line->id)
->whereBetween('created_at', [$startDate, $endDate])
->count();
}
$dayShiftEfficiency = $dayShiftPlanQuan > 0 ? ($dayproductionQuantity / $dayShiftPlanQuan) * 100 : 0;
$nightShiftEfficiency = $nightShiftPlanQuan > 0 ? ($nightproductionQuantity / $nightShiftPlanQuan) * 100 : 0;