Implemented Event Budget

This commit is contained in:
2026-05-26 18:12:42 +02:00
parent 575fb27018
commit 28ffbdb696
17 changed files with 422 additions and 143 deletions
+2 -4
View File
@@ -42,12 +42,10 @@ class CostUnitEstimate extends InstancedModel
default:
$event = $this->costUnit()->first()->event()?->first();
if (null !== $event) {
$participants = $event->participants()->count();
return $this->amount_by_user->multiply($participants);
$amount = clone($this->amount_by_user);
return $amount->multiply($participants);
} else {
dd('U');
return $this->amount_by_user;
}
}