{% extends "base.html" %} {% from "_macros.html" import doc_export, attachments_card with context %} {% block title %}{{ v.number }}{% endblock %} {% block content %}
{{ nm(f) }}

{{ v.number }} {{ t(v.state|capitalize) }}

{{ v.date }}{{ ' · ' ~ v.payee if v.payee }}{{ ' · ' ~ v.notes if v.notes }}
{{ doc_export() }} {% if v.move_id %}{{ t('Journal Entry') }}{% endif %} {% if can_write and v.state == 'draft' %} {{ t('Edit') }}
{% endif %}
{% for l in lines %}{% endfor %}
{{ t('Account') }}{{ t('Description') }}{{ t('Receipt no.') }}{{ t('Cost Centre') }}{{ t('Amount') }}{{ t('VAT') }}{{ t('VAT') }}{{ t('Total') }}
{{ l.code }} {{ nm(l) }}{{ l.description or '' }}{{ l.receipt_ref or '' }}{{ l.cc_code or '' }} {{ l.amount|money(cur) }}{{ l.tname or '' }}{{ l.tax_amount|money(cur, True) }}{{ (l.amount + l.tax_amount)|money(cur) }}
{{ t('Total') }} ({{ cur }}){{ v.total|money(cur) }}
{{ attachments_card('petty_cash', v.id) }} {% endblock %}