{% load static %} {% load i18n %} {% load crispy_forms_tags %} {% load inventree_extras %} {% settings_value "PART_INTERNAL_PRICE" as show_internal_price %}

{% trans "Pricing Overview" %}

{% include "spacer.html" %}
{% with part.pricing as pricing %} {% if pricing.is_valid %}
{% trans "Last Updated" %}: {% render_date pricing.updated %}
{% if part.purchaseable %} {% endif %} {% if part.assembly %} {% endif %} {% if part.is_template %} {% endif %} {% if pricing.override_min or pricing.override_max %} {% endif %}
{% trans "Price Category" %} {% trans "Minimum" %} {% trans "Maximum" %}
{% if show_internal_price and roles.sales_order.view %} {% endif %} {% trans "Internal Pricing" %} {% render_currency pricing.internal_cost_min %} {% render_currency pricing.internal_cost_max %}
{% if roles.purchase_order.view %} {% endif %} {% trans "Purchase History" %} {% render_currency pricing.purchase_cost_min %} {% render_currency pricing.purchase_cost_max %}
{% if roles.purchase_order.view %} {% endif %} {% trans "Supplier Pricing" %} {% render_currency pricing.supplier_price_min %} {% render_currency pricing.supplier_price_max %}
{% if part.has_bom %} {% endif %} {% trans "BOM Pricing" %} {% render_currency pricing.bom_cost_min %} {% render_currency pricing.bom_cost_max %}
{% trans "Variant Pricing" %} {% render_currency pricing.variant_cost_min %} {% render_currency pricing.variant_cost_max %}
{% trans "Pricing Overrides" %} {% render_currency pricing.override_min currency=pricing.override_min_currency %} {% render_currency pricing.override_max currency=pricing.override_max_currency %}
{% trans "Overall Pricing" %} {% render_currency pricing.overall_min %} {% render_currency pricing.overall_max %}
{% if part.salable and roles.sales_order.view %}
{% trans "Price Category" %} {% trans "Minimum" %} {% trans "Maximum" %}
{% trans "Sale Price" %} {% render_currency pricing.sale_price_min %} {% render_currency pricing.sale_price_max %}
{% trans "Sale History" %} {% render_currency pricing.sale_history_min %} {% render_currency pricing.sale_history_max %}
{% else %}
{% trans "Sale price data is not available for this part" %}
{% endif %}
{% else %}
{% trans "Price range data is not available for this part." %}
{% endif %} {% endwith %}
{% if show_internal_price and roles.sales_order.view %}

{% trans "Internal Pricing" %}

{% include "spacer.html" %}
{% endif %} {% if part.purchaseable and roles.purchase_order.view %}

{% trans "Purchase History" %}

{% trans "Supplier Pricing" %}

{% endif %} {% if part.assembly and part.has_bom %}

{% trans "BOM Pricing" %}

{% endif %} {% if part.is_template %}

{% trans "Variant Pricing" %}

{% endif %} {% if part.salable and roles.sales_order.view %}

{% trans "Sale Pricing" %}

{% include "spacer.html" %}

{% trans "Sale History" %}

{% endif %}