{%- extends "accounting/voucher_base.weasy.html" -%} {%- block main %}
|
{{_("Period from {} to {}").format(obj.invoicing_min_date, obj.invoicing_max_date)}}
{{_("Recipient")}}: {{obj.recipient}} |
{{_("Date")}}: {{fdl(obj.voucher_date)}}
{{_("Our reference")}}: {{obj}} ({{obj.partner.id}}) {{language}} |
| {{_("Description")}} | {{_("Product")}} | {{_("Quantity")}} |
|---|---|---|
|
{%- if item.description -%} {{item.title}} {% if item.description.startswith("<") %} {{item.description}} {% else %} {{restify(item.description)}} {% endif %} {% else %} {{item.title}} {% endif %} {%- if item.invoiceable -%} {{item.invoiceable.summary}} {% endif %} |
{% if item.invoiceable %}{{item.invoiceable.get_invoiceable_product()}}{% endif %} | {{item.qty}} |
| {{_("Ticket")}} | {%- for product in sums_by_product.keys() -%}{{product}} | {%- endfor -%} {%- if len(sums_by_product) > 1 -%}{{_("Total")}} | {%- endif -%}
|---|---|---|
| {% if ticket %}#{{ticket.id}} {{ticket.summary}}{% else %}{{_("N/A")}}{% endif %} | {%- for product in sums_by_product.keys() -%}{{sums_by_ticket_product[ticket, product] or ""}} | {%- endfor -%} {%- if len(sums_by_product) > 1 -%}{{qty or ""}} | {%- endif -%}
| {{_("Total")}} | {%- for product in sums_by_product.keys() -%}{{sums_by_product[product] or ""}} | {%- endfor -%} {%- if len(sums_by_product) > 1 -%}{{sums_by_product.total() or ""}} | {%- endif -%}
| {{_("Product")}} | {{_("Before")}} | {{_("This report")}} | {{_("After")}} |
|---|---|---|---|
| {{product}} ({{product.delivery_unit}}) | {{obj.get_provision('purchased', product, True)}} | {{qty}} | {{obj.get_provision('purchased', product, False)}} |