{% extends "company/company_base.html" %} {% load static %} {% block details %} {% load i18n %} {% include 'company/tabs.html' with tab='po' %}

{% trans "Purchase Orders" %}


{% endblock %} {% block js_ready %} {{ block.super }} loadPurchaseOrderTable($("#purchase-order-table"), { url: "{% url 'api-po-list' %}?supplier={{ company.id }}", }); function newOrder() { launchModalForm("{% url 'po-create' %}", { data: { supplier: {{ company.id }}, }, follow: true, }); } $("#company-order").click(function() { newOrder(); }); $("#company-order2").click(function() { newOrder(); }); $(".po-table").inventreeTable({ }); {% endblock %}