fix: Jinja2 sum() doesn't support default kwarg — use map/select/sum chain
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
131f7f7a6f
commit
6bf71439c7
@ -606,7 +606,7 @@
|
||||
{% endif %}
|
||||
{% if event.is_paid and user_attending %}
|
||||
{% set my_amount = (user_attending.payment_amount or 0)|float %}
|
||||
{% set guests_amount = user_guests|sum(attribute='payment_amount', default=0)|float if user_guests else 0 %}
|
||||
{% set guests_amount = user_guests|map(attribute='payment_amount')|select('ne', none)|map('float')|sum if user_guests else 0 %}
|
||||
{% set total_to_pay = my_amount + guests_amount %}
|
||||
<div style="margin-top: 8px; width: 100%;">
|
||||
{% if user_attending.payment_status == 'paid' and not user_guests %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user