{% extends 'admin/print.html' %} {% load i18n simpelcore_tags %} {% block header_right %}
{{ object.specific.opts.verbose_name|title }}

{{ object.opts.verbose_name|title }}

{% endblock header_right %} {% block content %}
#{{ object.inner_id }}
{% trans "Created At:" %} {{ object.created_at }}
{{ object.get_status_display }}
#{{ object.inner_id }}
{% if object.note %} {% endif %}
{% trans "Customer ID" %} #{{ object.sales_order.inner_id }}
{% trans "Customer ID" %} {{ object.customer.uid|upper }}
{% trans "Customer Name" %} {{ object.customer.name }}
{% trans "Address" %}
{{ object.customer.address.render.0 }}
{{ object.customer.address.render.1 }}
{% trans "Email" %} {{ object.customer.email }}
{% trans "Phone" %} {{ object.customer.phone }}
{% trans "Note" %} {{ object.note }}
{% for product_item in object.items.all %} {% endfor %}
{% trans "Name" %} {% trans "Price" %} {% trans "Quantity" %} {% trans "Unit" %} {% trans "Total" %}
{{ product_item.product.name }} {% if product_item.name %} ({{ product_item.name }}) {% endif %} {{ product_item.subtotal|currency }} {{ product_item.quantity }} {{ product_item.product.unit }} {{ product_item.total|currency }}
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 "Down Payment" %} {{ object.downpayment|currency }}
{% trans "Grand Total" %} {{ object.grand_total|currency }}
{% endblock %}