changed logic in monthly actual quantity in target #1153

Merged
jothi merged 1 commits from ranjith-dev into master 2026-10-01 12:43:07 +00:00

View File

@@ -645,7 +645,7 @@ class ProductionTargetPlan extends Component
->whereMonth('created_at', $month)
->sum('plan_quantity');
$this->monthlyActualQuantity = ProductionPlan::where('plant_id', $plantId)
$this->monthlyActualQuantity = QualityValidation::where('plant_id', $plantId)
->where('line_id', $lineId)
->whereYear('created_at', $year)
->whereMonth('created_at', $month)