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