{% extends 'admin/inspect.html' %} {% load static i18n admin_urls simpelcore_tags simpellab_tags thumbnail %} {% load comments %} {% load comments_xtd %} {% block object-tools-items %} {% url opts|admin_urlname:'convert' object.pk|admin_urlquote as convert_url %} {% if perms.simpel_sales.add_salesorder and convert_url %} {% trans "Convert to Sales Order" as convert_popover %} {% include 'admin/includes/object_tools_item.html' with url=convert_url popover=convert_popover icon="arrow-left-right-bold-outline" %} {% endif %} {% url opts|admin_urlname:'clone' object.pk|admin_urlquote as clone_url %} {% if perms.simpel_sales.add_salesquotation and clone_url %} {% trans "Duplicate this Quotation" as clone_popover %} {% include 'admin/includes/object_tools_item.html' with url=clone_url popover=clone_popover icon="clipboard-file-outline" %} {% endif %} {{ block.super }} {% endblock %} {% block content %}
{% if object.group %}
{{ object.group|title }}
{% endif %}
{{ 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" %}
{% if object.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 }}
{% else %}
{% trans "Billing address not set." %}
{% endif %}
{% trans "Shipping Address" %}
{% if object.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 }}
{% else %}
{% trans "Shipping address not set." %}
{% endif %}
{% if object.note %}
{% trans "Note" %}
{{ object.note }}
{% endif %}
{% include 'admin/simpel_sales/order_row.html' %}
{% trans "#" %} {% trans "Item" %} {% trans "Price" %} {% trans "Quantity" %} {% trans "Total" %}
Terbilang:

{{ object.grand_total|number_to_text|title }}{% if object.grand_total > 0 %} Rupiah{% endif %}

{% trans "Total" %} {{ object.total|currency }}
{% trans "Discount" %} {{ object.discount|currency }}
{% trans "Grand Total" %} {{ object.grand_total|currency }}
{% for item in object.items.all %} {% include 'admin/simpel_sales/salesorder/item.html' with object=item %} {% endfor %}
{% include 'dashboard/comments.html' %}
{% include 'admin/simpel_sales/salesquotation/summary.html' %} {% include 'includes/action_logs.html' %}
{% endblock %}