{% set entry_types = ['open', 'close', 'transaction', 'balance', 'note', 'document', 'pad', 'query', 'custom'] %} {% set sub_types = { 'custom': ( ('budget', 'B', _('Budget entries')), ), 'document': ( ('discovered', 'D', _('Documents with a #discovered tag')), ('statement', 'S', _('Documents with a #statement tag')), ), 'transaction': ( ('cleared', '*', _('Cleared transactions')), ('pending', '!', _('Pending transactions')), ('other', 'x', _('Other transactions')), ), } %} {% 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', } %} {% macro account_link(name) %}{{ name }}{% endmacro %} {% macro render_metadata(metadata, entry_hash=None) -%} {% if metadata %}
{% endif %} {%- endmacro %} {% macro render_tags_links(entry) -%} {% for tag in entry.tags %}#{{ tag }}{% endfor %} {% for link_ in entry.links %}^{{ link_ }}{% endfor %} {%- endmacro %} {% macro journal_table(entries, show_change_and_balance=False) %} {% autoescape false %}{{ _('Date') }} {{ _('F') }} {{ _('Narration/Payee') }} {{ _('Position') }} {{ _('Price') }} {{ _('Cost') }} {% if show_change_and_balance %} {{ _('Change') }} {{ _('Balance') }} {% endif %}