{% extends "company/supplier_part_base.html" %} {% load static %} {% load i18n %} {% load inventree_extras %} {% block details %} {% include "company/supplier_part_tabs.html" with tab='pricing' %}

{% trans "Pricing Information" %}

{% if part.base_cost > 0 %} {% endif %} {% if part.price_breaks.all %} {% for pb in part.price_breaks.all %} {% endfor %} {% else %} {% endif %}
{% trans "Order Multiple" %}{{ part.multiple }}
{% trans "Base Price (Flat Fee)" %}{{ part.base_cost }}
{% trans "Price Breaks" %}
{% trans "Quantity" %} {% trans "Price" %}
{% decimal pb.quantity %} {% if pb.currency %}{{ pb.currency.symbol }}{% endif %} {% decimal pb.cost %} {% if pb.currency %}{{ pb.currency.suffix }}{% endif %}
{% trans "No price breaks have been added for this part" %}
{% endblock %} {% block js_ready %} {{ block.super }} $('#new-price-break').click(function() { launchModalForm("{% url 'price-break-create' %}", { reload: true, data: { part: {{ part.id }}, } } ); }); $('.pb-edit-button').click(function() { var button = $(this); launchModalForm(button.attr('url'), { reload: true, } ); }); $('.pb-delete-button').click(function() { var button = $(this); launchModalForm(button.attr('url'), { reload: true, } ); }); {% endblock %}