{% set entry_types = ['open', 'close', 'transaction', 'balance', 'note', 'document', 'pad', 'query', 'custom'] %} {% set transaction_type_buttons = ( ('cleared', '*', _('Cleared transactions')), ('pending', '!', _('Pending transactions')), ('other', 'x', _('Other transactions')), ) %} {% set document_type_buttons = ( ('discovered', 'D', _('Documents with a #discovered tag')), ('statement', 'S', _('Documents with a #statement tag')), ) %} {% set keyboard_shortcuts = { 'open': 's o', 'close': 's c', 'balance': 's b', 'note': 's n', 'pad': 's p', 'query': 's q', 'custom': 's C', 'budget': 's B', 'transaction': 's t', 'cleared': 't c', 'pending': 't p', 'other': 't o', 'document': 's d', 'discovered': 'd d', 'statement': 'd s', } %}
{% set account_url = url_for('account', name='REPLACEME') %} {% macro account_link(name) -%} {{ name }} {%- endmacro %} {% macro render_inventory(inv) -%} {% for pos in inv|units %} {{ pos.units|format_amount }}{{ _('Date') }} {{ _('F') }} {{ _('Narration/Payee') }} {{ _('Position') }} {{ _('Price') }} {{ _('Cost') }} {% if show_change_and_balance %} {{ _('Change') }} {{ _('Balance') }} {% endif %}