Changed query logic in production mail report
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Successful in 5m21s
Laravel Larastan / larastan (pull_request) Failing after 5m57s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Successful in 5m21s
Laravel Larastan / larastan (pull_request) Failing after 5m57s
This commit is contained in:
@@ -267,7 +267,7 @@ class SendProductionReport extends Command
|
|||||||
$nonPlannedproductionQuantity = \App\Models\QualityValidation::where('plant_id', $plant->id)
|
$nonPlannedproductionQuantity = \App\Models\QualityValidation::where('plant_id', $plant->id)
|
||||||
->where('line_id', $line->id)
|
->where('line_id', $line->id)
|
||||||
->whereHas('stickerMaster', function ($query) use ($itemIds) {
|
->whereHas('stickerMaster', function ($query) use ($itemIds) {
|
||||||
$query->whereIn('item_id', $itemIds);
|
$query->whereNotIn('item_id', $itemIds);
|
||||||
})
|
})
|
||||||
->whereBetween('created_at', [$startDate, $endDate])
|
->whereBetween('created_at', [$startDate, $endDate])
|
||||||
->count();
|
->count();
|
||||||
|
|||||||
Reference in New Issue
Block a user