{% macro render_amount(ledger, amount, class="num") %} {% if amount is none or amount.number is none -%} {%- else -%} {{- amount.number|format_currency(amount.currency)|incognito }} {{ amount.currency -}} {%- endif %} {% endmacro %} {% macro render_num(ledger, currency, number) -%} {{ number|format_currency(currency)|incognito }} {{ currency }} {%- endmacro %}