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
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:
@@ -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,
|
||||
]);
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user