{% extends "stock/item_base.html" %} {% load static %} {% load i18n %} {% block details %} {% include "stock/tabs.html" with tab='children' %}

{% trans "Child Stock Items" %}

{% if item.child_count > 0 %} {% include "stock_table.html" %} {% else %}
{% trans "This stock item does not have any child items" %}
{% endif %} {% endblock %} {% block js_ready %} {{ block.super }} {% if item.child_count > 0 %} loadStockTable($("#stock-table"), { params: { location_detail: true, part_details: true, ancestor: {{ item.id }}, }, name: 'item-childs', groupByField: 'location', buttons: [ '#stock-options', ], url: "{% url 'api-stock-list' %}", }); {% endif %} {% endblock %}