Merge pull request 'removed monthly logic in target' (#1146) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #1146
This commit was merged in pull request #1146.
This commit is contained in:
2026-09-30 11:43:17 +00:00
2 changed files with 8 additions and 8 deletions

View File

@@ -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,
]);

View File

@@ -1,6 +1,6 @@
<div class="p-4">
<div class="p-4 mt-6">
{{-- <div class="p-4 mt-6">
<h2 class="text-lg font-bold mb-4 text-gray-700 uppercase tracking-wider">
MONTHLY PRODUCTION PLAN:
</h2>
@@ -63,7 +63,7 @@
</tbody>
</table>
</div>
</div>
</div> --}}
{{-- //.. --}}
<h2 class="text-lg font-bold mb-4 text-gray-700 uppercase tracking-wider">