mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Display overdue purchase orders on the index page
This commit is contained in:
parent
e8fd597f29
commit
75e1442fce
@ -35,6 +35,7 @@ InvenTree | {% trans "Index" %}
|
|||||||
{% if roles.purchase_order.view %}
|
{% if roles.purchase_order.view %}
|
||||||
{% include "InvenTree/po_outstanding.html" with collapse_id="po_outstanding" %}
|
{% include "InvenTree/po_outstanding.html" with collapse_id="po_outstanding" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% include "InvenTree/po_overdue.html" with collapse_id="po_overdue" %}
|
||||||
{% if roles.sales_order.view %}
|
{% if roles.sales_order.view %}
|
||||||
{% include "InvenTree/so_outstanding.html" with collapse_id="so_outstanding" %}
|
{% include "InvenTree/so_outstanding.html" with collapse_id="so_outstanding" %}
|
||||||
{% include "InvenTree/so_overdue.html" with collapse_id="so_overdue" %}
|
{% include "InvenTree/so_overdue.html" with collapse_id="so_overdue" %}
|
||||||
@ -130,6 +131,14 @@ loadPurchaseOrderTable("#po-outstanding-table", {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
loadPurchaseOrderTable("#po-overdue-table", {
|
||||||
|
url: "{% url 'api-po-list' %}",
|
||||||
|
params: {
|
||||||
|
supplier_detail: true,
|
||||||
|
overdue: true,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
loadSalesOrderTable("#so-outstanding-table", {
|
loadSalesOrderTable("#so-outstanding-table", {
|
||||||
url: "{% url 'api-so-list' %}",
|
url: "{% url 'api-so-list' %}",
|
||||||
params: {
|
params: {
|
||||||
@ -158,6 +167,7 @@ loadSalesOrderTable("#so-overdue-table", {
|
|||||||
{% include "InvenTree/index/on_load.html" with label="stock-to-build" %}
|
{% include "InvenTree/index/on_load.html" with label="stock-to-build" %}
|
||||||
|
|
||||||
{% include "InvenTree/index/on_load.html" with label="po-outstanding" %}
|
{% include "InvenTree/index/on_load.html" with label="po-outstanding" %}
|
||||||
|
{% include "InvenTree/index/on_load.html" with label="po-overdue" %}
|
||||||
{% include "InvenTree/index/on_load.html" with label="so-outstanding" %}
|
{% include "InvenTree/index/on_load.html" with label="so-outstanding" %}
|
||||||
{% include "InvenTree/index/on_load.html" with label="so-overdue" %}
|
{% include "InvenTree/index/on_load.html" with label="so-overdue" %}
|
||||||
|
|
||||||
|
15
InvenTree/templates/InvenTree/po_overdue.html
Normal file
15
InvenTree/templates/InvenTree/po_overdue.html
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{% extends "collapse_index.html" %}
|
||||||
|
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
{% block collapse_title %}
|
||||||
|
<span class='fas fa-calendar-times icon-header'></span>
|
||||||
|
{% trans "Overdue Purchase Orders" %}<span class='badge' id='po-overdue-count'><span class='fas fa-spin fa-spinner'></span></span>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block collapse_content %}
|
||||||
|
|
||||||
|
<table class='table table-striped table-condensed' id='po-overdue-table'>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user