{# Names the group discount on the checkout page, which core renders as a bare total with no breakdown and no template hook. This is not a fork. Indico's customization loader resolves a leading `~` to the *original* template, so this file inherits everything core does and only prepends a box. If core rewrites the page, we inherit the rewrite. #} {% extends '~events/payment/event_checkout.html' %} {% block content %} {% set membership = registration.group_membership %} {% set group = membership.group if membership else none %} {% if membership and membership.balance_due > 0 %} {# The group was repriced upward after this member paid. Core's checkout charges `registration.price` in full -- it has no notion of a partial payment -- so letting them through here would take the whole new price again on top of what they already handed over. The balance is collected off-platform and recorded by an organizer; see the "Balances due" page in the management area. #}
{% else %} {% if membership and membership.applied_amount %} {% set plan = group.pricing_plan %} {% endif %} {{ super() }} {% endif %} {% endblock %}