{% extends "base.html" %} {% load inventree_extras %} {% load static %} {% load i18n %} {% block page_title %} InvenTree | {% trans "Purchase Orders" %} {% endblock %} {% block content %}

{% trans "Purchase Orders" %}


{% if roles.purchase_order.add %} {% endif %}
{% endblock %} {% block js_load %} {{ block.super }} {% endblock %} {% block js_ready %} {{ block.super }} $('#purchase-order-calendar').hide(); $('#view-list').hide(); $('#view-calendar').click(function() { // Hide the list view, show the calendar view $("#purchase-order-table").hide(); $("#view-calendar").hide(); $(".fixed-table-pagination").hide(); $(".columns-right").hide(); $(".search").hide(); $('#filter-list-salesorder').hide(); $("#purchase-order-calendar").show(); $("#view-list").show(); }); $("#view-list").click(function() { // Hide the calendar view, show the list view $("#purchase-order-calendar").hide(); $("#view-list").hide(); $(".fixed-table-pagination").show(); $(".columns-right").show(); $(".search").show(); $("#purchase-order-table").show(); $('#filter-list-salesorder').show(); $("#view-calendar").show(); }); $("#po-create").click(function() { launchModalForm("{% url 'po-create' %}", { follow: true, } ); }); loadPurchaseOrderTable("#purchase-order-table", { url: "{% url 'api-po-list' %}", }); {% endblock %}