commented relationship in line #1147
@@ -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');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user