diff --git a/app/Livewire/ProductionTargetPlan.php b/app/Livewire/ProductionTargetPlan.php index 93f79db7..d8d4f58e 100644 --- a/app/Livewire/ProductionTargetPlan.php +++ b/app/Livewire/ProductionTargetPlan.php @@ -635,11 +635,11 @@ class ProductionTargetPlan extends Component $this->records = $records; - $this->monthlyRecords = ProductionPlan::where('plant_id', $plantId) - ->where('line_id', $lineId) - ->whereYear('created_at', $year) - ->whereMonth('created_at', $month) - ->sum('plan_quantity'); + // $this->monthlyRecords = ProductionPlan::where('plant_id', $plantId) + // ->where('line_id', $lineId) + // ->whereYear('created_at', $year) + // ->whereMonth('created_at', $month) + // ->sum('plan_quantity'); // $this->monthlyRecords = $plans->sum('plan_quantity'); } @@ -664,7 +664,7 @@ class ProductionTargetPlan extends Component // return view('livewire.production-target-plan'); return view('livewire.production-target-plan', [ 'records' => $this->records, - 'monthlyRecords' => $this->monthlyRecords, + // 'monthlyRecords' => $this->monthlyRecords, 'dates' => $this->dates, ]); diff --git a/resources/views/livewire/production-target-plan.blade.php b/resources/views/livewire/production-target-plan.blade.php index 9241058e..bbaed873 100644 --- a/resources/views/livewire/production-target-plan.blade.php +++ b/resources/views/livewire/production-target-plan.blade.php @@ -1,6 +1,6 @@