Issue solved in production characteristics #771

Merged
jothi merged 1 commits from ranjith-dev into master 2026-06-18 11:17:07 +00:00
Showing only changes of commit 8cb76196bc - Show all commits

View File

@@ -253,9 +253,9 @@ class ProductionCharacteristicResource extends Resource
->label('Spec. Value')
// ->searchable()
->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)->where('id', $record->product_characteristics_master_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('name', $record->characteristic_name)->first();
// return $record?->plant_id.'-'.$record?->item_id.'-'.$record->line_id.'-'.$record?->machine_id;
return $specVal?->lower.' - '.$specVal?->upper;
})
->alignCenter()