Added logic is in production characteristics page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 16s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Successful in 1m43s
Laravel Larastan / larastan (pull_request) Failing after 3m29s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 16s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Successful in 1m43s
Laravel Larastan / larastan (pull_request) Failing after 3m29s
This commit is contained in:
@@ -253,7 +253,7 @@ class ProductionCharacteristicResource extends Resource
|
|||||||
->label('Spec. Value')
|
->label('Spec. Value')
|
||||||
// ->searchable()
|
// ->searchable()
|
||||||
->formatStateUsing(function ($record) {
|
->formatStateUsing(function ($record) {
|
||||||
$specVal = ProductCharacteristicsMaster::where('plant_id', $record->plant_id)->where('item_id', $record->item_id)->where('line_id', $record->line_id)->where('machine_id', $record->machine_id)->first();
|
$specVal = ProductCharacteristicsMaster::where('plant_id', $record->plant_id)->where('item_id', $record->item_id)->where('line_id', $record->line_id)->where('machine_id', $record->machine_id)->where('id', $record->product_characteristics_master_id)->first();
|
||||||
|
|
||||||
// return $record?->plant_id.'-'.$record?->item_id.'-'.$record->line_id.'-'.$record?->machine_id;
|
// return $record?->plant_id.'-'.$record?->item_id.'-'.$record->line_id.'-'.$record?->machine_id;
|
||||||
return $specVal?->lower.' - '.$specVal?->upper;
|
return $specVal?->lower.' - '.$specVal?->upper;
|
||||||
@@ -276,7 +276,7 @@ class ProductionCharacteristicResource extends Resource
|
|||||||
'Not Ok' => 'danger',
|
'Not Ok' => 'danger',
|
||||||
'NotOk' => 'danger',
|
'NotOk' => 'danger',
|
||||||
'ConditionallyAccepted' => 'success',
|
'ConditionallyAccepted' => 'success',
|
||||||
default => 'gray',
|
default => 'black',
|
||||||
})
|
})
|
||||||
->alignCenter()
|
->alignCenter()
|
||||||
->sortable(),
|
->sortable(),
|
||||||
|
|||||||
Reference in New Issue
Block a user