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

{% trans "Pricing Information" %}

{% default_currency as currency %}

{% trans "Pricing ranges" %}

{% if part.supplier_count > 0 %} {% if min_total_buy_price %} {% if quantity > 1 %} {% endif %} {% else %} {% endif %} {% endif %} {% if part.assembly and part.bom_count > 0 %} {% if min_total_bom_price %} {% if quantity > 1 %} {% endif %} {% if min_total_bom_purchase_price %} {% if quantity > 1 %} {% endif %} {% endif %} {% if part.has_complete_bom_pricing == False %} {% endif %} {% else %} {% endif %} {% endif %} {% if show_internal_price and roles.sales_order.view %} {% if total_internal_part_price %} {% endif %} {% endif %} {% if total_part_price %} {% endif %}
{% trans 'Supplier Pricing' %} {% trans 'Unit Cost' %} Min: {% include "price.html" with price=min_unit_buy_price %} Max: {% include "price.html" with price=max_unit_buy_price %}
{% trans 'Total Cost' %} Min: {% include "price.html" with price=min_total_buy_price %} Max: {% include "price.html" with price=max_total_buy_price %}
{% trans 'No supplier pricing available' %}
{% trans 'BOM Pricing' %} {% trans 'Unit Cost' %} Min: {% include "price.html" with price=min_unit_bom_price %} Max: {% include "price.html" with price=max_unit_bom_price %}
{% trans 'Total Cost' %} Min: {% include "price.html" with price=min_total_bom_price %} Max: {% include "price.html" with price=max_total_bom_price %}
{% trans 'Unit Purchase Price' %} Min: {% include "price.html" with price=min_unit_bom_purchase_price %} Max: {% include "price.html" with price=max_unit_bom_purchase_price %}
{% trans 'Total Purchase Price' %} Min: {% include "price.html" with price=min_total_bom_purchase_price %} Max: {% include "price.html" with price=max_total_bom_purchase_price %}
{% trans 'Note: BOM pricing is incomplete for this part' %}
{% trans 'No BOM pricing available' %}
{% trans 'Internal Price' %} {% trans 'Unit Cost' %} {% include "price.html" with price=unit_internal_part_price %}
{% trans 'Total Cost' %} {% include "price.html" with price=total_internal_part_price %}
{% trans 'Sale Price' %} {% trans 'Unit Cost' %} {% include "price.html" with price=unit_part_price %}
{% trans 'Total Cost' %} {% include "price.html" with price=total_part_price %}
{% if min_unit_buy_price or min_unit_bom_price %} {% else %}
{% trans 'No pricing information is available for this part.' %}
{% endif %}

{% trans "Calculation parameters" %}

{% csrf_token %} {{ form|crispy }}
{% endif %} {% if part.purchaseable and roles.purchase_order.view %}

{% trans "Supplier Cost" %}

{% trans "Suppliers" %}

{% trans "Manufacturers" %}

{% if show_price_history %}

{% trans "Purchase Price" %}

{% trans 'Stock Pricing' %}

{% if price_history|length > 0 %}
{% else %}
{% trans 'No stock pricing history is available for this part.' %}
{% endif %}
{% endif %} {% endif %} {% if show_internal_price and roles.sales_order.view %}

{% trans "Internal Cost" %}

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

{% trans "BOM Cost" %}

{% if part.bom_count > 0 %}

{% trans 'BOM Pricing' %}

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

{% trans "Sale Cost" %}

{% if show_price_history %}

{% trans "Sale Price" %}

{% if sale_history|length > 0 %}
{% else %}
{% trans 'No sale pice history available for this part.' %}
{% endif %}
{% endif %} {% endif %}