{%- extends "weasyprint/base.weasy.html" -%} {%- block pagesize %}portrait{%- endblock %} {%- block header %}
{{obj}}
{%- endblock %} {%- block footer %} {%- endblock %} {%- block main %}
{{_("Recipient")}}:
{{obj.recipient.get_address_html()}}




{{obj}}
{{_("Your customer id")}}: {{obj.partner.id}}
{{_("Your VAT id")}}: {{obj.partner.vat_no or _("N/A")}} ({{obj.vat_regime}})
{{_("Date")}}: {{fdl(obj.voucher_date)}}




{% block body %} {% if False %} {{as_table(rt.models.sales.ItemsByInvoicePrint.request(master_instance=obj))}} {% else %} {% if dd.plugins.vat.item_vat %} {% else %} {% endif %} {% for item in obj.items.order_by('seqno') %} {% endfor %}
{{_("Description")}} {{_("Unit price")}} {{_("Quantity")}}{{_("Price")}}{{rt.models.sales.InvoiceItem.total_base.field.verbose_name}}
{% if item.description %}

{{item.title}}

{% if item.description.startswith("<") %} {{item.description}} {% else %} {{restify(item.description)}} {% endif %} {% else %}

{{item.title}}

{% endif %}
{{item.unit_price or ''}} {% if item.unit_price %} {{item.qty}} {% endif %} {% if dd.plugins.vat.item_vat %} {{item.total_incl or ''}} {% else %} {{item.total_base or ''}} {% endif %}
{% endif %} {% endblock %}




{{_("Total excl. VAT")}} {{obj.total_base}}

{{_("VAT")}} {{obj.total_vat}}

{{_("Total incl. VAT")}} {{obj.total_incl}}





{% block payment %}

{% if obj.due_date %} {{_("Due date")}} : {{fds(obj.due_date)}}
{% endif %} {% if obj.payment_term %} {{_("Payment terms")}} : {{obj.payment_term}} {% endif %}

{{_("With best regards.")}}
{{this.user}}

{% endblock %}
{%- endblock %}