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

Material Consumption: {{ po.po_number }}

Back to List
Supplier Information

Name: {{ po.supplier.name }}

Phone: {{ po.supplier.phone|default:"-" }}

Order Details

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

Status: {{ po.get_status_display }}

Project: {{ po.project.project_title|default:"-" }}

Financials

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

Order Items
{% for item in items %} {% empty %} {% endfor %}
Product Price Quantity Total
{{ item.product.name }} {{ item.price|floatformat:2 }} {{ item.quantity }} {{ item.total_amount|floatformat:2 }}
No items found
{% if purchase_returns %}
Purchase Returns
{% for return_entry in purchase_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 Payable: ${{ net_payable|floatformat:2 }}

{% endif %}
{% endblock %}