fix: don't show bulk insurance labels in summary

This commit is contained in:
Björn Fromme
2026-03-16 12:00:56 +01:00
parent 7f2d52a5ce
commit 207b648f36
2 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -295,9 +295,10 @@ class ServicePricingCalculator
} }
// Resolve insurance: use price-tier-adjusted insurance for bulk assignment // Resolve insurance: use price-tier-adjusted insurance for bulk assignment
// Skip synthetic "no insurance" option - it's a UI construct that shouldn't appear in summary
$insuranceToAggregate = $this->resolveInsuranceForAggregation($participant, $bookingDto); $insuranceToAggregate = $this->resolveInsuranceForAggregation($participant, $bookingDto);
if (null !== $insuranceToAggregate && null !== $insuranceToAggregate->price) { if (null !== $insuranceToAggregate && null !== $insuranceToAggregate->price && false === $insuranceToAggregate->isNoInsurance()) {
$this->addInsuranceToServiceAggregation($serviceAggregation, $insuranceToAggregate, 1); $this->addInsuranceToServiceAggregation($serviceAggregation, $insuranceToAggregate, 1);
} }
@@ -65,7 +65,7 @@
{% endmacro %} {% endmacro %}
{# Macro to render a checkbox table row (for trailing checkboxes like rental insurance, parking, bulk insurance) #} {# Macro to render a checkbox table row (for trailing checkboxes like rental insurance, parking, bulk insurance) #}
{% macro checkbox_row(checkboxField, label, price, tooltipText, tooltipLabel, widgetAttr = {}) %} {% macro checkbox_row(checkboxField, label, price, tooltipText, tooltipLabel, widgetAttr = {}, showPrice = true) %}
{% set isReadonly = checkboxField.vars.attr.readonly is defined %} {% set isReadonly = checkboxField.vars.attr.readonly is defined %}
<tr> <tr>
<td class="border border-primary-bg p-2 align-top"> <td class="border border-primary-bg p-2 align-top">
@@ -82,7 +82,7 @@
{%- endif -%} {%- endif -%}
</td> </td>
<td class="border border-primary-bg p-2 align-top w-24 text-right whitespace-nowrap"> <td class="border border-primary-bg p-2 align-top w-24 text-right whitespace-nowrap">
{{ price | format_service_price }} {{ price | format_service_price(showPrice) }}
</td> </td>
<td class="border border-primary-bg p-2 align-top w-12 text-center"> <td class="border border-primary-bg p-2 align-top w-12 text-center">
{% set fieldTooltip = checkboxField.vars.attr['data-tooltip']|default(null) %} {% set fieldTooltip = checkboxField.vars.attr['data-tooltip']|default(null) %}
@@ -503,7 +503,8 @@
null, null,
form.bulkInsuranceBooking.vars.attr['data-description']|default(null), form.bulkInsuranceBooking.vars.attr['data-description']|default(null),
'Info', 'Info',
htmxAttr htmxAttr,
false
) }} ) }}
{% endif %} {% endif %}
{% for child in form.insurance %} {% for child in form.insurance %}