From 058fe5b89bd16913f59d24a7023e480f74457b0c Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 24 Sep 2026 11:12:28 +0530 Subject: [PATCH] changed logic against quality validation in production target plan --- app/Livewire/ProductionTargetPlan.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/Livewire/ProductionTargetPlan.php b/app/Livewire/ProductionTargetPlan.php index 8c30690..c19ce9d 100644 --- a/app/Livewire/ProductionTargetPlan.php +++ b/app/Livewire/ProductionTargetPlan.php @@ -5,6 +5,7 @@ namespace App\Livewire; use App\Exports\ProductionPlanExport; use App\Models\ProductionPlan; use App\Models\ProductionQuantity; +use App\Models\QualityValidation; use Livewire\Component; use Carbon\Carbon; use DB; @@ -23,10 +24,8 @@ class ProductionTargetPlan extends Component public $productionPlanDates = ''; - protected $listeners = [ 'loadData' => 'loadProductionData', - 'loadCategoryData' => 'loadProductionDataCategory', 'loadData1' => 'exportProductionData', ]; @@ -175,7 +174,6 @@ class ProductionTargetPlan extends Component // } - public function loadProductionData($year, $month, $plantId, $lineId, $category) { if (!$plantId || !$lineId || !$month || !$year) { @@ -224,7 +222,7 @@ class ProductionTargetPlan extends Component $this->leaveDates = $leaveDates; - $producedData = ProductionQuantity::selectRaw(" + $producedData = QualityValidation::selectRaw(" plant_id, line_id, item_id, @@ -301,7 +299,6 @@ class ProductionTargetPlan extends Component $this->records = $records; } - // public function loadProductionDataCategory($year, $month, $plantId, $lineId, $category) // { // if (!$plantId || !$lineId || !$month || !$year || !$category) {