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
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:
@@ -332,6 +332,12 @@ class SendProductionReport extends Command
|
|||||||
->where('line_id', $line->id)
|
->where('line_id', $line->id)
|
||||||
->whereBetween('created_at', [$startDate, $endDate])
|
->whereBetween('created_at', [$startDate, $endDate])
|
||||||
->count();
|
->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) {
|
if ($productionQuantity > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user