Added logic for base fg line non planned production quantities
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Larastan / larastan (pull_request) Failing after 5m27s
Laravel Pint / pint (pull_request) Successful in 5m21s

This commit is contained in:
dhanabalan
2026-11-18 10:16:01 +05:30
parent 090106db1d
commit 57bcc264bb

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) {