{% 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')), ('linked', 'L', _('Documents with a #linked 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', 'linked': 'd l', } %} {% set short_type = { 'balance': 'Bal', 'close': 'Close', 'document': 'Doc', 'note': 'Note', 'open': 'Open', } %} {% if not request.args.get('show') %} {% set journal_show = g.ledger.fava_options['journal-show'] + g.ledger.fava_options['journal-show-transaction'] + g.ledger.fava_options['journal-show-document'] %} {% else %} {% set journal_show = request.args.getlist('show') %} {% endif %} {% 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|sort %}#{{ tag }}{% endfor %} {% for link_ in entry.links|sort %}^{{ 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 %}