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

{% block details %}

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

<h4>Supplier Stock</h4>

<hr>

{% include "stock_table.html" %}

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

    loadStockTable($('#stock-table'), {
        url: "{% url 'api-stock-list' %}",
        params: {
            supplier: {{ company.id }},
            part_detail: true,
            location_detail: true,
        },
        buttons: [
            '#stock-options',
        ]
    });

{% endblock %}