{% extends "part/part_base.html" %} {% load status_codes %} {% load i18n %} {% load inventree_extras %} {% block details %} {% include "part/tabs.html" with tab="allocation" %}

{% trans "Part Stock Allocations" %}

{% for allocation in part.build_order_allocations %} {% endfor %} {% for allocation in part.sales_order_allocations %} {% endfor %}
{% trans "Order" %} {% trans "Stock Item" %} {% trans "Quantity" %}
{% trans "Build Order" %}: {{ allocation.build }} {% trans "Stock Item" %}: {{ allocation.stock_item }} {% decimal allocation.quantity %}
{% trans "Sales Order" %}: {{ allocation.line.order }} {% trans "Stock Item" %}: {{ allocation.item }} {% decimal allocation.quantity %}
{% endblock %} {% block js_ready %} $("#build-table").inventreeTable({ columns: [ { title: '{% trans "Order" %}', sortable: true, }, { title: '{% trans "Stock Item" %}', sortable: true, }, { title: '{% trans "Quantity" %}', sortable: true, } ] }); {% endblock %}