{% extends 'admin/print.html' %} {% load i18n static admin_urls simpelcore_tags simpelsettings_tags simpelauth_tags %} {% block content_wrapper %} {% get_settings %}
{% 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 }}
 
{{ settings.simpel_sales.SalesSetting.salesquotation_signer_position }}
{{ settings.simpel_core.GeneralSetting.name }}




{{ 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 %} {% include 'admin/simpel_sales/order_item_print.html' with object=item %} {% endfor %} {% endblock %}