{% extends "base.html" %} {% load static %} {% block title %}{{ supplier.name }} - Suppliers - {{ block.super }}{% endblock %} {% block content %}
| 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
|
| 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" }} |
{{ supplier.description }}
| 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 %} |
No address provided
{% endif %}| 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 }} |
No items from this supplier
{{ supplier.notes|linebreaks }}
{% else %}No notes available
{% endif %}