{% extends "core/base.html" %} {% load currency_filters %} {% load static %} {% block title %}Supplier - {{ supplier.name }}{% endblock %} {% block topbar_title %}Supplier Details{% endblock %} {% block content %}

{{ supplier.name }}

{% if supplier.phone %} {{ supplier.phone }}  |  {% endif %} {% if supplier.email %} {{ supplier.email }}{% endif %}
Financial Overview
Total Purchased
{% money supplier.total_purchased %}
Total Paid
{% money supplier.total_paid %}
Outstanding Balance
{% money supplier.balance %}
Vendor Details
Address
{{ supplier.address|default:"No address provided"|safe|linebreaksbr }}
Internal Notes
{{ supplier.notes|default:"No notes available"|safe|linebreaksbr }}
Purchase Orders
{% for po in purchase_orders %} {% empty %} {% endfor %}
PO # Status Total Cost Date Ordered Action
{{ po.reference_number|default:po.id }} {{ po.get_status_display }} {% money po.total_cost %} {{ po.date_ordered|date:"M j, Y" }} View
No purchase orders found for this supplier.
Payment Log
{% for p in supplier.payments.all %} {% empty %} {% endfor %}
Date Amount
{{ p.date|date:"M j, Y" }}
{% if p.notes %}
{{ p.notes|truncatechars:20 }}
{% endif %}
{% money p.amount %}
No payment history available.
{% endblock %}