1
0
forked from poc/pds

commented relationship in line

This commit is contained in:
dhanabalan
2026-09-30 17:16:22 +05:30
parent 49d79cfcb4
commit 01bd9b2a64

View File

@@ -125,7 +125,7 @@ class ProductionTarget extends Page
Select::make('line_id') Select::make('line_id')
->label('Line') ->label('Line')
->required() ->required()
->relationship('line', 'name') // ->relationship('line', 'name')
// ->searchable() // ->searchable()
->columnSpan(1) ->columnSpan(1)
->options(function (callable $get) { ->options(function (callable $get) {
@@ -140,7 +140,7 @@ class ProductionTarget extends Page
->reactive() ->reactive()
->afterStateUpdated(function ($state, callable $get, $set) { ->afterStateUpdated(function ($state, callable $get, $set) {
$plantId = $get('plant_id'); $plantId = $get('plant_id');
$lineId = $get('line_id'); $lineId = $state;
// $month = $get('month'); // $month = $get('month');
$year = $get('year'); $year = $get('year');