{% extends 'base.html' %} {% load indonesian_filters %} {% load static %} {% block title %}{{ supplier.name }} - Manufacturing App{% endblock %} {% block content %}

{{ supplier.name }}

{{ supplier.contact_person|default:"No contact person" }}

{% if messages %} {% for message in messages %} {% endfor %} {% endif %}
Supplier Information
Code: {{ supplier.code }}
Name: {{ supplier.name }}
Contact Person: {{ supplier.contact_person|default:"Not specified" }}
Status: {% if supplier.is_active %} Active {% else %} Inactive {% endif %}
Contact Details
Email: {{ supplier.email|default:"Not provided" }}
Phone: {{ supplier.phone|default:"Not provided" }}
Tax ID: {{ supplier.tax_id|default:"Not provided" }}
Payment Terms: {{ supplier.payment_terms|default:"Standard terms" }}
Address
{% if supplier.address %}

{{ supplier.address|linebreaks }}

{% else %}

No address provided

{% endif %}
Purchase Orders History
{% with orders=supplier.purchaseorder_set.all %} {% if orders %}
{% for order in orders %} {% endfor %}
PO Number Order Date Status Total Amount Actions
{{ order.po_number }} {{ order.order_date|date:"M d, Y" }} {{ order.get_status_display }} {{ order.total_amount|format_rupiah }}
Total Orders: {{ orders.count }}
Total Value: {{ orders|length }} orders
{% else %}

No purchase orders found for this supplier.

Create First Purchase Order
{% endif %} {% endwith %}
Back to Supplier List
{% endblock %}