{% extends "base.html" %} {% load static erp_tags %} {% block title %}{{ price_list.name }} — Price List{% endblock %} {% block chat_context %} {% endblock %} {% block content %} {# Header Card #}
{{ price_list.name }}

{{ price_list.get_price_list_type_display }} · {{ price_list.currency }} {% if price_list.valid_from %} · From {{ price_list.valid_from }}{% endif %} {% if price_list.valid_to %} to {{ price_list.valid_to }}{% endif %}

{{ price_list.get_price_list_type_display }} {% if price_list.is_default %}Default{% endif %} {% if price_list.is_active %} Active {% else %} Inactive {% endif %}
{% if price_list.description %}

{{ price_list.description }}

{% endif %} {# Controls summary #} {% if price_list.margin_floor_percent or price_list.discount_cap_percent %}
{% if price_list.margin_floor_percent %}

Margin Floor

{{ price_list.margin_floor_percent }}%

{% endif %} {% if price_list.discount_cap_percent %}

Discount Cap

{{ price_list.discount_cap_percent }}%

{% endif %}
{% endif %} {# Price List Items #}
Items ({{ items|length }})
{% for item in items %} {% empty %} {% endfor %}
SKU Product Min Qty Price Valid From Valid To Active
{{ item.variant.sku }} {{ item.variant.name|default:item.variant.product.title }} {{ item.min_qty|floatformat:0 }} {{ item.price|money }} {{ item.valid_from|default:"—" }} {{ item.valid_to|default:"—" }} {% if item.is_active %} {% else %} {% endif %}
No items in this price list yet.
{% endblock %}