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