{% extends "base.html" %} {% load i18n %} {% load modeltags %} {% load arithmetictags %} {% block title %}{% url contact_detail invoice.customer.id as customer_url %}{% blocktrans with invoice.customer as customer and customer_url as customer_url %}Invoice for {{ customer }}{% endblocktrans %}{% endblock %} {% block context_menu %}
{% trans "Edit" %}
{% trans "Delete" %}
{% endblock %} {% block content %}
{% with invoice as object %}{% with "invoice_id" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %}
{{ invoice.get_state_display }}
{{ invoice.amount }}
{% if user.get_profile.vat_number %}
{{ invoice.get_vat|floatformat:2 }}
{{ invoice.amount_including_tax|floatformat:2 }}
{% endif %} {% with invoice as object %}{% with "edition_date" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with invoice as object %}{% with "payment_date" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %}
{{ invoice.get_payment_type_display|default:'' }}
{% with invoice as object %}{% with "paid_date" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with invoice as object %}{% with "execution_begin_date" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with invoice as object %}{% with "execution_end_date" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with invoice as object %}{% with "penalty_date" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with invoice as object %}{% with "penalty_rate" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with invoice as object %}{% with "discount_conditions" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with invoice as object %}{% with "footer_note" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %}
{% trans "download pdf file" %}

{% trans "Detail rows" %}

{% if invoice.invoice_rows.all %}
{% if user.get_profile.vat_number %} {% endif %} {% for invoicerow in invoice.invoice_rows.all %} {% if user.get_profile.vat_number %} {% endif %} {% endfor %}
{% trans "Label" %} {% trans "Proposal" %} {% trans "Balance payments" %} {% trans "Category" %} {% trans "Quantity" %} {% trans "Unit price" %} {% trans "Total price" %}{% trans "VAT rate" %}{% trans "Detail" %}
{{ invoicerow.label }} {% if invoicerow.proposal %}{{ invoicerow.proposal }}{% endif %} {% if invoicerow.proposal %}{% if invoicerow.balance_payments %}{% trans "yes" %}{% else %}{% trans "no" %}{% endif %}{% endif %} {{ invoicerow.get_category_display }} {{ invoicerow.quantity|floatformat:"-2" }} {{ invoicerow.unit_price|floatformat:"-2" }} {{ invoicerow.amount|floatformat:"-2" }}{{ invoicerow.vat_rate|default:'' }}{{ invoicerow.detail|default:''|linebreaksbr }}
{% else %}
{% trans "No rows" %}
{% endif %} {% endblock %}