removed monthly logic in target
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 50s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 29s
Laravel Pint / pint (pull_request) Successful in 5m19s
Laravel Larastan / larastan (pull_request) Failing after 7m2s

This commit is contained in:
dhanabalan
2026-09-30 17:13:06 +05:30
parent cf60bfe2c1
commit 49d79cfcb4
2 changed files with 8 additions and 8 deletions

View File

@@ -635,11 +635,11 @@ class ProductionTargetPlan extends Component
$this->records = $records; $this->records = $records;
$this->monthlyRecords = ProductionPlan::where('plant_id', $plantId) // $this->monthlyRecords = ProductionPlan::where('plant_id', $plantId)
->where('line_id', $lineId) // ->where('line_id', $lineId)
->whereYear('created_at', $year) // ->whereYear('created_at', $year)
->whereMonth('created_at', $month) // ->whereMonth('created_at', $month)
->sum('plan_quantity'); // ->sum('plan_quantity');
// $this->monthlyRecords = $plans->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');
return view('livewire.production-target-plan', [ return view('livewire.production-target-plan', [
'records' => $this->records, 'records' => $this->records,
'monthlyRecords' => $this->monthlyRecords, // 'monthlyRecords' => $this->monthlyRecords,
'dates' => $this->dates, 'dates' => $this->dates,
]); ]);

View File

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