Added logic for base fg line non planned production quantities #1461
@@ -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