feat: additional custom discount applied to total price
This commit is contained in:
1 parent
dea7a3dc97
commit
8443dae5ad
14 files changed
+287
-23
No files matched your search
@@ -158,6 +158,20 @@ class AccommodationBookingType extends AbstractType
|
||||
new Range(min: 1, max: 100),
|
||||
],
|
||||
])
|
||||
// Applies to the total after the three section discounts. The label is not marked
|
||||
// required here — a percentage may legitimately be absent — but the entity refuses
|
||||
// a percentage without one, so no unnamed discount can reach the customer.
|
||||
->add('totalDiscount', IntegerType::class, [
|
||||
'label' => 'Rabatt Gesamtpreis (%)',
|
||||
'required' => false,
|
||||
'constraints' => [
|
||||
new Range(min: 1, max: 100),
|
||||
],
|
||||
])
|
||||
->add('totalDiscountLabel', TextType::class, [
|
||||
'label' => 'Bezeichnung Rabatt Gesamtpreis',
|
||||
'required' => false,
|
||||
])
|
||||
->add('remarks', TextareaType::class, [
|
||||
'label' => 'Bemerkungen',
|
||||
'required' => false,
|
||||
|
||||
Reference in new issue
Block a user