trytond-account_invoice_htm.../report/invoice.html

7.0 KiB

{% extends 'html_report/report/base.html' %} {% block title %} {{ _('Invoice') }} {% endblock %} {% block main %} {% for invoice in records %}{% language invoice.party.lang and invoice.party.raw.lang.code or company.party.lang and company.party.raw.lang.code or 'en' %}
{{ company.render.header }}
{% if invoice.raw.type == 'in' %}{{ _('Supplier Invoice') }}{% else %}{{ _('Invoice') }}{% endif %}# {{ invoice.render.number or '' }}
{{ _('Date') }}: {{ invoice.render.invoice_date or '' }}
{% if invoice.raw.type == 'in' %}{{ _('Supplier') }}{% else %}{{ _('Customer') }}{% endif %}
{% if invoice.invoice_address %} {% for line in invoice.invoice_address.raw.full_address.split('\n') %} {{ line }}
{% endfor %} {% if invoice.party.raw.phone %}
{{ _('Phone') }}: {{ invoice.party.render.phone }} {% endif %} {% if invoice.party.raw.fax %}
{{ _('Fax') }}: {{ invoice.party.render.fax }} {% endif %} {% if invoice.party.raw.email %}
{{ _('Email') }}: {{ invoice.party.render.email }} {% endif %} {% endif %}
{% for line in invoice.lines %} {% endfor %}
{{ _('Product') }} {{ _('Code') }} {{ _('Qty') }} {{ _('Unit Price') }} {{ _('Amount') }}
{{ line.product and line.product.render.name or line.render.description }} {{ line.product and line.product.render.code or '-' }} {{ line.render.quantity }} {{ line.render.unit_price }} {{ line.render.amount }}
{{ _('Due Dates') }}: {{ _('Taxes') }}:
{% for maturity_date in invoice.lines_to_pay %} {% endfor %}
{{ maturity_date.render.date }} {{ maturity_date.render.debit }}
{% for tax in invoice.taxes %} {% endfor %}
{{ "Base %s" % (tax.tax.render.rate * 100)|round|int|string + '%' }} {{ tax.render.base }} {{ tax.render.amount }} {{ (tax.render.base + tax.render.amount) }}
{{ _('Untaxed') }}: {{ invoice.render.untaxed_amount }}
{{ _('Tax') }}: {{ invoice.render.tax_amount }}
{{ _('Total') }}: {{ invoice.render.total_amount }}
{% endlanguage %}{% endfor %} {% endblock %}