{{ object.get_type_display }}
{{ object.get_type_display }} {{ _('number') }}: {{ object.number }}
{% if not generating_pdf and object.invoice %}
{{ _('Related invoice number') }}:
{{ object.invoice.number }}
{% endif %}
{{ _('Issue date') }}: {{ object.date_of_issue }}
{{ _('Due date') }}: {{ object.due_date }}
{% if not object.includes_vat %}
{{ _('We are not VAT payers.') }}
{% endif %}
{{ _('From') }}: {{ object.seller }}
{{ object.seller_details|linebreaksbr }}
{{ _('To') }}: {{ object.buyer }}
{{ object.buyer_details|linebreaksbr }}
{{ _('Item') }} |
{{ _('Quantity') }} |
{{ _('Unit price') }} |
{{ _('Total') }} |
{% for item in object.items.all %}
{{ item.title|linebreaksbr }} |
{{ item.quantity }} |
{{ item.price|floatformat:2 }} |
{{ item.total_amount|floatformat:2 }} {{ object.currency }}
|
{% endfor %}
{% if object.includes_vat %}
{{ _('VAT') }} ({{ object.vat }}%)
|
{{ object.items_vat|floatformat:2 }} {{ object.currency }}
|
{% endif %}
{{ _('Subtotal') }}
|
{{ object.items_total_with_vat|floatformat:2 }} {{ object.currency }}
|
{% if object.discount %}
{{ _('Discount') }} ({{ object.discount }}%)
|
{{ object.items_discount|floatformat:2 }} {{ object.currency }}
|
{% endif %}
{% if invoice_for_proforma %}
{{ _('Total paid') }}
{% else %}
{{ _('Total') }}
{% endif %}
|
{{ object.total_amount|floatformat:2 }} {{ object.currency }}
|
{% if invoice_for_proforma %}
{{ _('To be paid') }}
|
0 {{ object.currency }}
|
{% endif %}
{% if invoice_for_proforma or object.note %}
{% endif %}
{% if invoice_for_proforma %}
{{ _('Invoice is a billing of the pro forma invoice:') }}
{% for i in object.proforma.all %}
{% if generating_pdf %}
{{ i.number }}
{% else %}
{{ i.number }}
{% endif %}
{% endfor %}
{{ _('Do not pay this tax document.') }}
{% endif %}
{% if object.note %}
{{ object.note|linebreaksbr }}
{% endif %}
{% if not generating_pdf %}
{% endif %}