Feat: Make fees editable, duplicatable and add internal name

This commit is contained in:
Björn Fromme
2023-10-20 16:35:56 +02:00
parent 992bdcc46c
commit 9e9608e604
9 changed files with 205 additions and 5 deletions
+7 -1
View File
@@ -71,7 +71,13 @@ class AssignmentType extends AbstractType
->add('fees', EntityType::class, [
'label' => 'Honorar(e)',
'class' => Fee::class,
'choice_label' => 'name',
'choice_label' => function (Fee $fee) {
if (false === empty($fee->getNameInternal())) {
return $fee->getNameInternal();
}
return $fee->getName();
},
'multiple' => true,
'expanded' => true,
])
+4 -1
View File
@@ -15,7 +15,10 @@ class FeeType extends AbstractType
{
$builder
->add('name', TextType::class, [
'label' => 'Bezeichnung',
'label' => 'Bezeichnung öffentlich',
])
->add('nameInternal', TextType::class, [
'label' => 'Bezeichnung intern',
])
->add('value', MoneyType::class, [
'label' => 'Wert',