{% extends "core/base.html" %} {% load material_form i18n rules %} {% load render_table from django_tables2 %} {% block browser_title %}{{ object.number }}{% endblock %} {% block content %} {% has_perm 'tezor.do_payment' user object as can_do_payment %} {% has_perm 'tezor.view_invoice_group_rule' user object.group as can_view_invoice_group %} {% has_perm 'tezor.display_purchased_items_rule' user object as can_view_purchased_items %} {% has_perm 'tezor.display_billing_rule' user object as can_view_billing_information %} {% has_perm 'tezor.print_invoice_rule' user object as can_print_invoice %} {% has_perm 'tezor.send_invoice_email_rule' user object as can_send_invoice_email %}

{% trans "Invoice" %} {{ object.number }} — {{ object.created.date }}

{% if can_view_invoice_group %} {% trans "Back" %} {% endif %} {% if can_print_invoice %} {% trans "Print" %} {% endif %} {% if can_send_invoice_email %} {% trans "Send Email" %} {% endif %}
{% if can_view_billing_information %}
{% trans "Billing information" %}
{{ object.billing_first_name }} {{object.billing_last_name }}
{{ object.billing_address_1 }} {{ object.billing_address_2 }}
{{ object.billing_postcode }} {{ object.billing_city}}
{{ object.billing_email }}
{% endif %}
{% trans "Payment" %}
{{ object.get_variant_name }}
{{ object.get_status_display }}
{{ object.due_date }}
{% if object.status == "waiting" or object.status == "rejected" or object.status == "input" and can_do_payment %} {% endif %}
{% if can_view_purchased_items %} {% render_table object.purchased_items_table %} {% render_table object.totals_table %} {% endif %} {% endblock %}