{% extends 'report_html_accounts/reports/base.html' %} {% block title %} Invoice {{ records|join('# ', 'number') }} {% endblock %} {% block main %} {% for invoice in records %}
{% block header %} {% include header%} {% endblock %}
Invoice# {{ invoice.number or '' }}
Date: {{ (invoice.invoice_date or datetime.date.today())|dateformat }}
Sold To: Sold By:
{% if invoice.invoice_address %} {% for line in invoice.invoice_address.full_address.split('\n') %} {{ line }}
{% endfor %} {% if invoice.party.phone %}
Phone: {{ invoice.party.phone }} {% endif %} {% if invoice.party.fax %}
Fax: {{ invoice.party.fax }} {% endif %} {% if invoice.party.email %}
Email: {{ invoice.party.email }} {% endif %} {% endif %}
{% set company_party = user.company.party %} {% for line in company_party.addresses[0].full_address.split('\n') %} {{ line }}
{% endfor %} {% if company_party.phone %}
Phone: {{ company_party.phone }} {% endif %} {% if company_party.fax %}
Fax: {{ company_party.fax }} {% endif %} {% if company_party.email %}
Email: {{ company_party.email }} {% endif %}
{% for line in invoice.lines %} {% endfor %}
Product SKU Qty Unit Price Amount
{{ line.product and line.product.name or line.description }} {{ line.product and line.product.code or '-' }} {{ formatLang(line.quantity, invoice.party.lang, digits=line.unit_digits) }} {{ line.unit_price|currencyformat(invoice.currency.code) }} {{ line.amount|currencyformat(invoice.currency.code) }}
{% for tax in invoice.taxes|sorted_tax_lines %} {% endfor %}
{{ "Base %s" % (tax.tax.rate * 100)|round|int|string + '%' }} {{ tax.base|currencyformat(invoice.currency.code) }} {{ tax.amount|currencyformat(invoice.currency.code) }} {{ (tax.base + tax.amount)|currencyformat(invoice.currency.code) }}
Total (excl. tax) {{ invoice.untaxed_amount|currencyformat(invoice.currency.code) }}
Tax {{ invoice.tax_amount|currencyformat(invoice.currency.code) }}
Total (incl. tax) {{ invoice.total_amount|currencyformat(invoice.currency.code) }}
{% endfor %} {% endblock %}