{% extends 'base.html' %} {% load indonesian_filters %} {% block title %}Sales Order {{ so.so_number }} - Details{% endblock %} {% block content %}

Sales Order: {{ so.so_number }}

Edit Delete Back to List
Sales Order Information
SO Number: {{ so.so_number }}
Customer: {{ so.customer.name }}
Order Date: {{ so.order_date|date:"M d, Y" }}
Expected Delivery: {% if so.expected_delivery_date %} {{ so.expected_delivery_date|date:"M d, Y" }} {% else %} Not specified {% endif %}
Status: {% if so.status == 'processing' %} Processing {% elif so.status == 'completed' %} Completed {% elif so.status == 'cancelled' %} Cancelled {% else %} {{ so.get_status_display }} {% endif %}
Subtotal: {{ so.subtotal|format_rupiah }}
Tax (11%): {{ so.tax_amount|format_rupiah }}
Total Amount: {{ so.total_amount|format_rupiah }}
Items Count: {{ so.items.count }} items
Created: {{ so.created_at|date:"M d, Y H:i" }}
{% if so.notes %}
Notes:

{{ so.notes|linebreaks }}

{% endif %}
Order Items
{% if so.items.all %}
{% for item in so.items.all %} {% endfor %}
Product Quantity Unit Price Total Price
{{ item.product.name }}
{{ item.product.code }}
{{ item.quantity|floatformat:0 }} {{ item.unit_price|format_rupiah }} {{ item.total_price|format_rupiah }}
{% else %}

No items in this order.

{% endif %}
Customer Information
{{ so.customer.name }}

{{ so.customer.address|default:"No address" }}

{% if so.customer.phone %}

{{ so.customer.phone }}

{% endif %} {% if so.customer.email %}

{{ so.customer.email }}

{% endif %} View Customer Details
Quick Actions
{% if so.status == 'processing' %} Create Delivery {% endif %} Delete Order View All Orders
{% endblock %}