{% extends "page_base.html" %} {% load inventree_extras %} {% load static %} {% load i18n %} {% block page_title %} {% inventree_title %} | {% trans "Sales Orders" %} {% endblock %} {% block breadcrumb_list %} {% endblock %} {% block heading %} {% trans "Sales Orders" %} {% endblock %} {% block actions %} {% if roles.sales_order.add %} {% endif %} {% endblock %} {% block page_info %}
{% if report_enabled %} {% endif %} {% include "filter_list.html" with id="salesorder" %}
{% endblock %} {% block js_ready %} {{ block.super }} loadSalesOrderTable("#sales-order-table", { url: "{% url 'api-so-list' %}", }); {% if report_enabled %} $("#order-print").click(function() { var rows = getTableData('#sales-order-table'); var orders = []; rows.forEach(function(row) { orders.push(row.pk); }); printSalesOrderReports(orders); }) {% endif %} $("#so-create").click(function() { createSalesOrder(); }); {% endblock %}