Added status in production order fialment table
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Laravel Larastan / larastan (pull_request) Failing after 4m12s
Laravel Pint / pint (pull_request) Successful in 5m38s

This commit is contained in:
dhanabalan
2026-09-10 18:15:01 +05:30
parent 737515f0f8
commit 8359cba44d

View File

@@ -95,7 +95,7 @@ class ProductionOrderResource extends Resource
return ($userHas && strlen($userHas) > 0) ? optional(ProductionOrder::where('plant_id', $userHas)->latest()->first())->item_id : optional(ProductionOrder::latest()->first())->item_id;
})
->required()
->afterStateUpdated(function ($state, callable $set) {
->afterStateUpdated(function ($state, callable $set, $get) {
$set('quantity', null);
$set('show_extra_fields', false);
$set('start_date', null);
@@ -291,6 +291,11 @@ class ProductionOrderResource extends Resource
->searchable()
->alignCenter()
->sortable(),
Tables\Columns\TextColumn::make('print_status')
->label('Status')
->searchable()
->alignCenter()
->sortable(),
Tables\Columns\TextColumn::make('created_at')
->label('Created At')
->dateTime()