Feat: Make fees editable, duplicatable and add internal name
This commit is contained in:
@@ -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,
|
||||
])
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user