{% extends "company/company_base.html" %}
{% load static %}
{% load i18n %}

{% block details %}

{% include "company/tabs.html" with tab="assigned" %}

<h4>{% trans "Assigned Stock" %}</h4>
<hr>

<div id='button-toolbar'>
    <div class='filter-list' id='filter-list-stock'>
        <!-- An empty div in which the filter list will be constructed -->
    </div>
</div>

<table class='table table-striped table-condensed' id='stock-table' data-toolbar='#button-toolbar'></table>

{% endblock %}

{% block js_ready %}
{{ block.super }}

loadStockTable($("#stock-table"), {
    params: {
        customer: {{ company.id }},
        part_detail: true,
        location_detail: true,
    },
    url: "{% url 'api-stock-list' %}",
    filterKey: "customerstock",
});

{% endblock %}