ranjith-dev #337

Merged
jothi merged 3 commits from ranjith-dev into master 2026-02-16 07:09:50 +00:00
Showing only changes of commit 7c086ceb28 - Show all commits

View File

@@ -15,27 +15,30 @@ class EditProductCharacteristicsMaster extends EditRecord
return 'Edit Characteristics'; // This will replace the "New product characteristics master" return 'Edit Characteristics'; // This will replace the "New product characteristics master"
} }
public function mount(int|string $record): void // public function mount(int|string $record): void
{ // {
parent::mount($record); // parent::mount($record);
$model = $this->getRecord(); // actual model instance // $model = $this->getRecord(); // actual model instance
// Step 1: Fill the actual saved fields first // // Step 1: Fill the actual saved fields first
$this->form->fill([ // $this->form->fill([
'plant_id' => $model->plant_id, // 'plant_id' => $model->plant_id,
'line_id' => $model->line_id, // 'item_id' => $model->item_id,
'item_id' => $model->item_id, // 'line_id' => $model->line_id,
'machine_id' => $model->machine_id, // 'machine_id' => $model->machine_id,
'name' => $model->name, // 'name' => $model->name,
'type' => $model->type, // 'characteristics_type' => $model->characteristics_type,
'upper' => $model->upper, // 'inspection_type' => $model->inspection_type,
'lower' => $model->lower, // // 'type' => $model->type,
'middle' => $model->middle, // 'upper' => $model->upper,
'work_group_master_id' => optional($model->machine)->work_group_master_id, // 'lower' => $model->lower,
]); // 'middle' => $model->middle,
// 'created_by' => $model->created_by,
} // 'updated_by' => $model->updated_by,
// 'work_group_master_id' => optional($model->machine)->work_group_master_id,
// ]);
// }
protected function getHeaderActions(): array protected function getHeaderActions(): array
{ {