{% extends "modal_form.html" %} {% load i18n inventree_extras %} {% block pre_form_content %} {% default_currency as currency %} {% settings_value "PART_INTERNAL_PRICE" as show_internal_price %}
{% trans 'Part' %} {{ part }}
{% trans 'Quantity' %} {{ quantity }}
{% if part.supplier_count > 0 %}

{% trans 'Supplier Pricing' %}

{% if min_total_buy_price %} {% if quantity > 1 %} {% endif %} {% else %} {% endif %}
{% 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' %}
{% endif %} {% if part.bom_count > 0 %}

{% trans 'BOM Pricing' %}

{% if min_total_bom_price %} {% if quantity > 1 %} {% endif %} {% endif %} {% if min_total_bom_purchase_price %} {% if quantity > 1 %} {% endif %} {% endif %} {% if min_total_bom_price or min_total_bom_purchase_price %} {% else %} {% endif %}
{% 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 'No BOM pricing available' %}
{% endif %} {% if show_internal_price and roles.sales_order.view %} {% if total_internal_part_price %}

{% 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 %}
{% endif %} {% endif %} {% if total_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 %}
{% endif %} {% if min_unit_buy_price or min_unit_bom_price or min_unit_bom_purchase_price %} {% else %}
{% trans 'No pricing information is available for this part.' %}
{% endif %}
{% endblock pre_form_content %}