{% set personal_data = registration.personal_data %} {% set txn = registration.transaction %}

Receipt

{% set today = now_utc() %}
Number
{% if custom_fields.receipt_number %} {{ custom_fields.receipt_number }} {% else %} {{ today | format_datetime('YMMddHHMM')}}/{{ registration.friendly_id }} {% endif %}
Date
{{ today | format_date }}
{% if registration.base_price %} {% endif %} {% for field in registration.field_data if field.actual_price %} {% endfor %} {% if txn and txn.status == 'successful' and txn.provider != '_manual' %} {% endif %}
Description Price
Registration fee {% if custom_fields.fee_category %}({{ custom_fields.fee_category }}){% endif %} {{ registration.base_price|format_currency(registration.currency) }}
{{ field.title }}{% if field.friendly_value %} ({{ field.friendly_value }}){% endif %} {{ field.actual_price|format_currency(registration.currency) }}
Total {{ registration.total_price|format_currency(registration.currency) }}
Total paid {{ txn.amount|format_currency(txn.currency) }}