Merge pull request 'Added logic for base fg line non planned production quantities' (#1461) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s

Reviewed-on: #1461
This commit was merged in pull request #1461.
This commit is contained in:
2026-11-18 04:46:15 +00:00

View File

@@ -332,6 +332,12 @@ class SendProductionReport extends Command
->where('line_id', $line->id)
->whereBetween('created_at', [$startDate, $endDate])
->count();
$nonPlannedproductionQuantity = ProductionQuantity::where('plant_id', $plant->id)
->where('line_id', $line->id)
->whereNotIn('item_id', $itemIds)
->whereBetween('created_at', [$startDate, $endDate])
->count();
}
if ($productionQuantity > 0) {