{% extends "part/part_base.html" %} {% load status_codes %} {% load i18n %} {% load inventree_extras %} {% block menubar %} {% include "part/navbar.html" with tab="allocation" %} {% endblock %} {% block heading %} {% trans "Part Stock Allocations" %} {% endblock %} {% block details %} {% 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 %} {{ block.super }} $("#build-table").inventreeTable({ columns: [ { title: '{% trans "Order" %}', sortable: true, }, { title: '{% trans "Stock Item" %}', sortable: true, }, { title: '{% trans "Quantity" %}', sortable: true, } ] }); {% endblock %}