Merge pull request 'changed logic against quality validation in production target plan' (#1087) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #1087
This commit was merged in pull request #1087.
This commit is contained in:
2026-09-24 05:56:29 +00:00

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