{% extends "base.html" %} {% block title %}Suppliers & Purchases{% endblock %} {% block page_heading %}Supplier & Purchase Management{% endblock %} {% block content %}

โž• Add Supplier

๐Ÿงพ Add Purchase Order

๐Ÿญ Suppliers

{% for s in suppliers %}{% else %}{% endfor %}
NameContactPhoneEmailStatus
{{ 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.

๐Ÿ“ฆ Purchase Orders

{% for p in purchases %}{% else %}{% endfor %}
DateSupplierItemQtyTotalUnitPaidOutstandingStatus
{{ 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.
{% endblock %}