{% extends 'admin/inspect.html' %} {% load i18n static admin_urls simpelauth_tags %} {% block object-tools-items %} {{ block.super }} {% endblock %} {% block content %}
{{ object.group|title }}
{{ object.inner_id }}
{% trans "Status" %}
: {{ object.get_status_display }}
{% trans "Created at" %}
: {{ object.created_at|date:"d M Y" }}
{% trans "Customer ID" %}
: {{ object.customer.inner_id }}
{% trans "Customer Name" %}
: {{ object.customer.name }}
{% if object.data.sampling_options %}
{% trans "Sampling" %}
: {% trans "Yes" %} / {{ object.data.sampling_estimation }} {% trans "Days" %}
{% trans "Scheduled At" %}
: {{ object.data.sampling_schedule }}
{% else %}
{% trans "Sampling" %}
: {% trans "No" %}
{% endif %}
{% trans "Billing Address" %}
{{ object.billing_address.name|title }}{% if object.billing_address.phone %}, {{ object.billing_address.phone }}{% endif %}
{{ object.billing_address.text_line_1 }}
{{ object.billing_address.text_line_2 }}
{% trans "Shipping Address" %}
{{ object.shipping_address.name|title }}{% if object.shipping_address.phone %}, {{ object.shipping_address.phone }}{% endif %}
{{ object.shipping_address.text_line_1 }}
{{ object.shipping_address.text_line_2 }}
{% if object.note %}
{% trans "Note" %}
{{ object.note }}
{% endif %}
{% include 'admin/simpel_invoices/invoice_table.html' with show_group=False %}
{% for item in object.items.all %} {% include 'admin/simpel_invoices/invoice_item.html' with object=item %} {% endfor %}
{% include 'notices/object_action_logs.html' %}
{% endblock %}