1
0
forked from poc/pds

Removed unwanted lines for production send report

This commit is contained in:
dhanabalan
2025-07-31 13:53:41 +05:30
parent 7bf2e8182b
commit cf5cfac555

View File

@@ -204,7 +204,7 @@ class SendProductionReport extends Command
->whereBetween('created_at', [$PlanstartDate, $planendDate]) ->whereBetween('created_at', [$PlanstartDate, $planendDate])
->sum('plan_quantity'); ->sum('plan_quantity');
if (strtolower($line->type) === 'fg line') { if (strtolower($line->type) == 'fg line') {
$productionQuantity = \App\Models\QualityValidation::where('plant_id', $plant->id) $productionQuantity = \App\Models\QualityValidation::where('plant_id', $plant->id)
->where('line_id', $line->id) ->where('line_id', $line->id)
->whereBetween('created_at', [$startDate, $endDate]) ->whereBetween('created_at', [$startDate, $endDate])