{% extends "base.html" %} {% block title %}Suppliers & Purchases{% endblock %} {% block page_heading %}Supplier & Purchase Management{% endblock %} {% block content %}
| Name | Contact | Phone | Status | ||
|---|---|---|---|---|---|
| {{ s.supplier_name }} | {{ s.contact_person or '-' }} | {{ s.phone or '-' }} | {{ s.email or '-' }} | {% if s.is_active is defined and not s.is_active %}Inactive{% else %}Active{% endif %} | Open |
| No suppliers. | |||||
| Date | Supplier | Item | Qty | Total | Unit | Paid | Outstanding | Status |
|---|---|---|---|---|---|---|---|---|
| {{ p.po_date }} | {% if p.supplier_id %}{{ p.supplier_name or '-' }}{% else %}-{% endif %} | {{ p.item_name }} | {{ p.qty }} | {{ '%.2f'|format(p.total_cost or 0) }} | {{ '%.2f'|format(p.unit_cost or 0) }} | {{ '%.2f'|format(p.amount_paid or 0) }} | {{ '%.2f'|format((p.total_cost or 0) - (p.amount_paid or 0)) }} | {{ p.status }} |
| No purchases. | ||||||||