Merge pull request 'changed logic in monthly actual quantity in target' (#1153) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #1153
This commit was merged in pull request #1153.
This commit is contained in:
@@ -645,7 +645,7 @@ class ProductionTargetPlan extends Component
|
||||
->whereMonth('created_at', $month)
|
||||
->sum('plan_quantity');
|
||||
|
||||
$this->monthlyActualQuantity = ProductionPlan::where('plant_id', $plantId)
|
||||
$this->monthlyActualQuantity = QualityValidation::where('plant_id', $plantId)
|
||||
->where('line_id', $lineId)
|
||||
->whereYear('created_at', $year)
|
||||
->whereMonth('created_at', $month)
|
||||
|
||||
Reference in New Issue
Block a user