feat: split nights off an accommodation booking as separate periods
addresses #869f6z36v
This commit is contained in:
1 parent
972839286c
commit
7001bc0cf2
35 files changed
+2221
-25
No files matched your search
@@ -67,6 +67,16 @@
|
||||
{{ booking.nights }} {{ booking.nights != 1 ? 'Nächte' : 'Nacht' }}
|
||||
</td>
|
||||
</tr>
|
||||
{% if ctx.priceBreakdown.periods is not empty %}
|
||||
<tr>
|
||||
<td class="p-2">Zeitraum Gruppe</td>
|
||||
<td class="p-2 text-right">
|
||||
{{ booking.mainDateFrom|date('d.m.Y') }} – {{ booking.mainDateTo|date('d.m.Y') }},
|
||||
<br>
|
||||
{{ ctx.priceBreakdown.nights }} {{ ctx.priceBreakdown.nights != 1 ? 'Nächte' : 'Nacht' }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td class="p-2">
|
||||
Anzahl Personen
|
||||
@@ -88,6 +98,14 @@
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
{% for period in ctx.priceBreakdown.periods|filter(p => p.position == 'leading') %}
|
||||
{% include 'groups/offer/_summary_period.html.twig' %}
|
||||
{% endfor %}
|
||||
{% if ctx.priceBreakdown.periods is not empty %}
|
||||
<tr class="border-t border-primary-bg font-semibold">
|
||||
<td class="p-2" colspan="2">Gruppe</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if ctx.priceBreakdown.basePrice > 0 %}
|
||||
<tr>
|
||||
<td class="p-2">
|
||||
@@ -141,6 +159,9 @@
|
||||
<td class="p-2 text-right whitespace-nowrap">{{ (ctx.priceBreakdown.runningCosts / 100)|format_currency(currency) }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% for period in ctx.priceBreakdown.periods|filter(p => p.position == 'trailing') %}
|
||||
{% include 'groups/offer/_summary_period.html.twig' %}
|
||||
{% endfor %}
|
||||
<tr class="border-t border-primary-bg font-semibold text-base">
|
||||
<td class="p-2">
|
||||
Gesamtpreis
|
||||
|
||||
Reference in new issue
Block a user