Removed unwanted logic from non planned production page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Successful in 2m46s
Laravel Larastan / larastan (pull_request) Failing after 5m20s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Successful in 2m46s
Laravel Larastan / larastan (pull_request) Failing after 5m20s
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user