Added logic for base fg line non planned production quantities #1461
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user