{%- extends "weasyprint/base.weasy.html" -%} {%- block pagesize %}portrait{%- endblock %} {%- block header %} {% set logo_file = rt.find_config_file("logo.jpg", "weasyprint") %} {% if logo_file %}
{{_("Date")}}: {{fdl(obj.voucher_date)}}
{{_("Our reference")}}: {{obj}}
{{_("Your reference")}}: {{obj.your_ref}} |
{{_("Your VAT id")}}: {{obj.partner.vat_no or _("N/A")}} ({{obj.vat_regime}})
{{_("Your customer id")}}: {{obj.partner.id}} |
{{_("Description")}} | {{_("Unit price")}} | {{_("Quantity")}} | {% if dd.plugins.vat.item_vat %}{{_("Price")}} | {% else %}{{rt.models.sales.InvoiceItem.total_base.field.verbose_name}} | {% endif %}
{% if item.description %}
{{item.title}} {% if item.description.startswith("<") %} {{item.description}} {% else %} {{restify(item.description)}} {% endif %} {% else %}{{item.title}} {% endif %} |
{{decfmt(item.unit_price)}} | {% if item.unit_price %} {{decfmt(item.qty)}} {% endif %} | {% if dd.plugins.vat.item_vat %} {{decfmt(item.total_incl)}} {% else %} {{decfmt(item.total_base)}} {% endif %} |
{{_("Total excl. VAT")}} | {{decfmt(obj.total_base)}} |
{{_("VAT")}} | {{decfmt(obj.total_vat)}} |
{{_("Total incl. VAT")}} | {{decfmt(obj.total_incl)}} |
{% 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}}
{% set site_op = settings.SITE.site_config.site_company %} {% for ln in site_op.get_address_lines() %} {{ln}}, {% endfor %} {#{site_op.get_address_html(sep=', ')}#} {{tostring(site_op.contact_details)}}
{% endblock ending %}