{% extends 'accounting.html' %} {% load i18n static notify categories widget_tweaks pipeline %} {% block bodyclass %}{{ block.super }} hidden-breadcrumbs{% endblock %} {% block title %} {{ invoice.model_name }} #{{ invoice.id }} {% endblock %} {% block content %} {{ block.super }}

{{ invoice.model_name }} #{{ invoice.id }} ({{ invoice.get_type_display }}) {{ invoice.created|date:'d.m.Y' }}

{% if form.supplier %} {{ form.supplier|add_class:'invoice-contact-select' }} {% endif %} {% if form.customer %} {{ form.customer|add_class:'invoice-contact-select' }} {% endif %}
{{ form.manager|add_class:'invoice-contact-select' }}
{% trans 'Print' %} {% if invoice.invoice_type == 'sale' %} {% trans 'Add customer' %} {% endif %}

{% include 'invoices/product-select-list.html' %} {% for item in invoice.get_items %} {{ item.render }} {% endfor %}
{% trans 'Code' %} {% trans 'Product' %} [ {% trans 'Add' %} ] {% trans 'Quantity' %} {% trans 'Price' %}
{% trans 'Total without discount' %}: {{ invoice.total }}
{% trans 'Discount' %}: {{ form.discount }} % {{ invoice.discounted_total }}
{% trans 'Total' %}: {{ invoice.total_with_discount }}
{% if invoice.invoice_type == 'sale' %} {% include 'services/manage.html' %} {% endif %} {% endblock %} {% block extrastyle %} {{ block.super }} {% stylesheet 'invoices' %} {{ form.media.css }} {% endblock %} {% block js %} {{ block.super }} {% notify_js %} {% javascript 'invoices' %} {{ form.media.js }} {% endblock %}