{% extends 'admin/print.html' %} {% load i18n static admin_urls simpelcore_tags simpelauth_tags %} {% block content_wrapper %}
{% 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 %}
{% with object.qrcode.qrcode.url as qr_url %} {% if qr_url %} {% endif %} {% endwith %}
{% 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 }}
 
{% trans "Authorized By" %}




{{ object.user.get_full_name }}

{{ object.opts.verbose_name|title }} {% trans "Item details" %}

{{ object.inner_id }} - {{ object.created_at }}

{% for item in object.items.all %} {% with object.product.specific as product %} {% if product.is_deliverable or object.bundles.count %}
{{ product.inner_id }} {{ product.name|truncatechars:60 }}
{% firstof object.name product.name %}
{{ object.quantity }} x {{ object.subtotal|currency }}
{{ object.total|currency }}
{% if product.is_deliverable and show_deliverable %}
{% trans "Deliverable Informations" %}
{% if object.deliverable_information %}
{{ object.deliverable_information.name|title }}{% if object.deliverable_information.phone %}, {{ object.billing_address.phone }}{% endif %}
{{ object.deliverable_information.text_line_1 }}
{{ object.deliverable_information.text_line_2 }}
{% else %}
{% trans "Deliverable information not set, using customer profile." %}
{% endif %}
{% endif %} {% if object.bundles.count %}
{% for orderitem_bundle in object.bundles.all %} {% endfor %}
{% trans "#" %} {% trans "Item" %} {% trans "Price" %} {% trans "Quantity" %} {% trans "Total" %}
{{ orderitem_bundle.product.inner_id }} {{ orderitem_bundle.product.name }} {{ orderitem_bundle.product.total_price|currency }} {{ orderitem_bundle.quantity }} {{ orderitem_bundle.product.unit }} {{ orderitem_bundle.total|currency }}
{% endif %}
{% endif %} {% endwith %} {% endfor %} {% endblock %}