{% set show_site_op_in_footer = False %} {% set show_printed_time = False %} {%- extends "weasyprint/base.weasy.html" -%} {%- block pagesize %}portrait{%- endblock %} {% set site_op = settings.SITE.plugins.contacts.site_owner %} {% if site_op %} {%- block bottomleft %} @bottom-left { vertical-align: top; content: {% for ln in site_op.get_address_lines() %} '{{ln}}, ' {% endfor %} {#{site_op.get_address_html(sep=', ')}#} '{{tostring(site_op.contact_details)}}'; } {%- endblock bottomleft %} {%- block bottomright %} @bottom-right { vertical-align: top; white-space: pre; content: '{{babelattr(obj.journal, 'printed_name')}} ' '{{obj.number}}/{{obj.accounting_period.year}}\A' '{{_("Page")}} ' counter(page) ' {{_("of {0}").format("")}} ' counter(pages) {%- if show_printed_time -%} '\A{{_("Printed")}} {{fdm(dd.today())}} {{_("at")}} {{now.time().strftime("%H:%M")}}' {%- endif %}; } {%- endblock bottomright %} {%- endif %} {%- block main %}
{{_("Date")}}: {{fdl(obj.voucher_date)}}
{{_("Our reference")}}: {{obj}}
{{_("Your reference")}}: {{obj.your_ref}} {% if getattr(obj, 'invoicing_min_date', None) %} {{_("Period from {} to {}").format(obj.invoicing_min_date, obj.invoicing_max_date)}} {% endif %} |
{{_("Your VAT id")}}: {{obj.partner.vat_id or _("N/A")}}
{{_("Your customer id")}}: {{obj.partner.id}} {% if false and obj.partner.vat_id %} {% set xmlfile, url = obj.make_xml_file(ar) %} {{_("e-invoice")}}: {url} {% endif %} |
{{str(item.title or item.product)}}
{% if item.description.startswith("<") %} {{item.description}} {% else %} {{restify(item.description)}} {% endif %} {% else %}{{str(item.title or item.product)}}
{% endif %}{{obj.get_column_heading(colname)}} | {#{{getattr(rt.models.trading.InvoiceItem, colname).field.verbose_name}} | #} {% endfor %}
---|---|
{{_("VAT category")}} | {{_("Total excl. VAT")}} | {{_("VAT")}} | {{_("Total incl. VAT")}} |
---|---|---|---|
{{cat}} ({{"{:.0%}".format(rule.rate)}}) | {{decfmt(total_base)}} | {{decfmt(total_vat)}} | {{decfmt(total_base+total_vat)}} |
{{_("Totals")}} | {{decfmt(obj.total_base)}} | {{decfmt(obj.total_vat)}} | {{decfmt(obj.total_incl)}} |
{{_("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.plugins.contacts.site_owner %} {% for ln in site_op.get_address_lines() %} {{ln}}, {% endfor %} {#{site_op.get_address_html(sep=', ')}#} {{tostring(site_op.contact_details)}}
{% endif %} {% endif %} {% endblock ending %}