{% extends "base.html" %} {% load static %} {% block title %}{{ supplier.name }} - Suppliers - {{ block.super }}{% endblock %} {% block content %}

{{ supplier.name }}

Supplier Information
Supplier Code: {{ supplier.supplier_code }}
Name: {{ supplier.name }}
Type: {{ supplier.get_supplier_type_display }}
Status: {% if supplier.is_active %}Active{% else %}Inactive{% endif %}
Rating: {% if supplier.rating %}
{% for i in "12345" %} {% if forloop.counter <= supplier.rating %} {% else %} {% endif %} {% endfor %}
{{ supplier.rating }}/5
{% else %} Not rated {% endif %}
Tax ID: {{ supplier.tax_id|default:"—" }}
License: {{ supplier.license_number|default:"—" }}
Payment Terms: {{ supplier.get_payment_terms_display|default:"—" }}
Credit Limit: {% if supplier.credit_limit %} ${{ supplier.credit_limit|floatformat:2 }} {% else %} — {% endif %}
Member Since: {{ supplier.created_at|date:"M d, Y" }}
{% if supplier.description %}
Description

{{ supplier.description }}

{% endif %}
Contact Information
Primary Contact
Name: {{ supplier.contact_person|default:"—" }}
Title: {{ supplier.contact_title|default:"—" }}
Phone: {% if supplier.phone %} {{ supplier.phone }} {% else %} — {% endif %}
Email: {% if supplier.email %} {{ supplier.email }} {% else %} — {% endif %}
Website: {% if supplier.website %} {{ supplier.website }} {% else %} — {% endif %}
Address
{% if supplier.address %}
{{ supplier.address }} {% if supplier.city or supplier.state or supplier.zip_code %}
{{ supplier.city }}{% if supplier.city and supplier.state %}, {% endif %}{{ supplier.state }} {{ supplier.zip_code }} {% endif %} {% if supplier.country %}
{{ supplier.country }} {% endif %}
View on Map {% else %}

No address provided

{% endif %}
Recent Orders
View All
{% if recent_orders %}
{% for order in recent_orders %} {% endfor %}
Order # Date Status Items Total Actions
{{ order.order_number }} {{ order.order_date|date:"M d, Y" }} {{ order.get_status_display }} {{ order.total_items }} ${{ order.total_amount|floatformat:2 }}
{% else %}
No orders yet

Create your first purchase order with this supplier

Create Order
{% endif %}
Quick Stats

{{ total_orders }}

Total Orders

${{ total_spent|floatformat:0 }}

Total Spent

{{ avg_delivery_days|floatformat:0 }}

Avg Delivery

{{ on_time_percentage|floatformat:0 }}%

On Time
Performance Score {{ performance_score|floatformat:0 }}/100
Quick Actions
Create Purchase Order
Supplier Items
{{ supplier_items.count }}
{% if supplier_items %} {% for item in supplier_items|slice:":5" %}
{{ item.item_name }}
{{ item.item_code }}
${{ item.unit_cost|floatformat:2 }}
{{ item.get_category_display }}
{% endfor %} {% if supplier_items.count > 5 %} {% endif %} {% else %}

No items from this supplier

{% endif %}
Notes
{% if supplier.notes %}

{{ supplier.notes|linebreaks }}

{% else %}

No notes available

{% endif %}
{% endblock %}