feat: surcharges and discounts per participant and in summary

This commit is contained in:
Björn Fromme
2025-11-13 09:30:49 +01:00
parent 1e5fe23159
commit 421851cc4c
3 changed files with 85 additions and 1 deletions
+19
View File
@@ -105,6 +105,25 @@
</div>
{% endif %}
{# Surcharges Section (Edit mode only) #}
{% if pricingData.surcharges is defined and pricingData.surcharges is not empty %}
<div class="mb-6 pb-4 border-b border-gray-200">
<h4 class="font-semibold text-lg mb-3 text-gray-800">Zuschläge</h4>
<div class="space-y-1">
{% for surchargePricing in pricingData.surcharges %}
<div class="flex justify-between items-center text-sm">
<span class="text-gray-600">
{{ surchargePricing.participantCount }}x {{ surchargePricing.label }}
</span>
<span class="font-medium text-gray-900">
{{ surchargePricing.totalPrice|number_format(2, ',', '.') }}
</span>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{# Total Section #}
{% if pricingData.grandTotal is defined and pricingData.grandTotal > 0 %}
<div class="pt-4 border-t-2 border-gray-300">