changes done
This commit is contained in:
1 parent
ddbf171881
commit
03fc1074b9
25 files changed
+471
-426
No files matched your search
+2
-3
@@ -145,9 +145,8 @@ class ProjektObjekteImDetailRelationManager extends RelationManager
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make()->iconButton()
|
||||
->mutateDataUsing(function ($data): array {
|
||||
|
||||
$data['nutzwert'] = round($data['faktor'] * $data['flaeche']);
|
||||
->mutateDataUsing(function ($data, $record): array {
|
||||
$data['nutzwert'] = round($record->methode->faktor * $data['flaeche']);
|
||||
|
||||
return $data;
|
||||
})->after(function (Component $livewire) {
|
||||
|
||||
Reference in new issue
Block a user