{% extends "base.html" %} {% block title %}Supplier Twin{% endblock %} {% block page_title %}Supplier Twin{% endblock %} {% block content %}
{{ total_db_suppliers }}
Total Suppliers
{{ active_count }}
Active Suppliers
{{ primary_count }}
Primary Suppliers
{% if total_db_suppliers > 0 %} {{ "%.1f"|format(avg_rating) }} {% else %} 0.0 {% endif %}
Avg Rating
{% if total_db_suppliers > 0 %} {{ total_spend | format_currency }} {% else %} {{ 0 | format_currency }} {% endif %}
Total Spend
CSV Template Excel Template Export Excel Export PDF
Supplier Database
{{ total_db_suppliers }} suppliers
{% if total_db_suppliers == 0 %}

No supplier records in database yet.

{% else %}
{% for s in suppliers %} {% endfor %}
Name Contact Person Email Category Lead Time Rating Total Spend Type Status Actions
{{ s.name or '-' }} {{ s.contact_person or '-' }} {{ s.email or '-' }} {{ s.category or 'General' }} {{ s.lead_time_days or 0 }} days {% if s.rating %} {{ "%.1f"|format(s.rating) }} {% else %}-{% endif %} {{ s.total_spend | format_currency }} {% if s.is_primary %} Primary {% else %} Secondary {% endif %} {{ s.status|title }}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}