changed logic against quality validation in production target plan
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 19s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 23s
Laravel Pint / pint (pull_request) Successful in 5m59s
Laravel Larastan / larastan (pull_request) Failing after 6m17s

This commit is contained in:
dhanabalan
2026-09-24 11:12:28 +05:30
parent 4ab5cca6b8
commit 058fe5b89b

View File

@@ -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) {