Removed unwanted logic from non planned production page #1220

Merged
jothi merged 1 commits from ranjith-dev into master 2026-10-12 06:40:02 +00:00

View File

@@ -76,8 +76,6 @@ class ProductionNonPlannedReport extends Page implements HasForms
Select::make('line_id') Select::make('line_id')
->label('Line') ->label('Line')
->required() ->required()
// ->relationship('line', 'name')
// ->searchable()
->columnSpan(1) ->columnSpan(1)
->options(function (callable $get) { ->options(function (callable $get) {
if (!$get('plant_id')) { if (!$get('plant_id')) {
@@ -156,17 +154,7 @@ class ProductionNonPlannedReport extends Page implements HasForms
TextInput::make('category') TextInput::make('category')
->label('Category') ->label('Category')
->reactive() ->reactive(),
->afterStateUpdated(function ($state, callable $get, $set) {
$plantId = $get('plant_id');
$lineId = $get('line_id');
// $month = $get('month');
$year = $get('year');
$month = (int) $get('month');
$category = $get('category');
}),
]) ])
->columns(4) ->columns(4)