{% extends "base.html" %} {% block title %}SO {{ so.so_number }} Details{% endblock %} {% block content %}

Sales Order: {{ so.so_number }}

Back to List
Supplier Information

Name: {{ so.customer.name }}

Company: {{ so.company_id }}

Phone: {{ so.customer.phone|default:"-" }}

Order Details

Date: {{ so.order_date|date:"M d, Y" }}

Status: {{ so.get_status_display }}

Job: {{ so.job.job_title|default:"-" }}

Financials

Total Amount: ${{ total_amount|floatformat:2 }}

Order Items
{% for item in items %} {% empty %} {% endfor %}
Product Description Price Quantity Total
{{ item.product.name }} {{ item.description|default:"-" }} ${{ item.price|floatformat:2 }} {{ item.quantity }} ${{ item.total|floatformat:2 }}
No items found
{% if sales_returns %}
Sales Returns
{% for return_entry in sales_returns %}
Return #: {{ return_entry.return_number }} | Date: {{ return_entry.return_date|date:"M d, Y" }}
{% if return_entry.notes %}

Notes: {{ return_entry.notes }}

{% endif %}
{% for item in return_entry.items.all %} {% endfor %}
Product Returned Quantity Unit Price Total
{{ item.product.name }} {{ item.quantity }} ${{ item.price|floatformat:2 }} ${{ item.total_amount|floatformat:2 }}
{% endfor %}
Total Returned: ${{ grand_return_total|floatformat:2 }}

Net Receivable: ${{ net_receivable|floatformat:2 }}

{% endif %}
{% endblock %}