wip
This commit is contained in:
1 parent
04e8abb55f
commit
d95452bc9d
5 files changed
+123
-78
No files matched your search
+4
-1
@@ -188,7 +188,10 @@ class ProjektObjekteImDetailRelationManager extends RelationManager
|
||||
->recordActions([
|
||||
EditAction::make()->iconButton()
|
||||
->mutateDataUsing(function ($data, $record): array {
|
||||
$data['nutzwert'] = round($record->methode->faktor * $data['flaeche']);
|
||||
|
||||
if (isset($record->methode->faktor)) {
|
||||
$data['nutzwert'] = round($record->methode->faktor * $data['flaeche']);
|
||||
}
|
||||
|
||||
return $data;
|
||||
})->after(function (Component $livewire) {
|
||||
|
||||
Reference in new issue
Block a user