2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Separate concept of "OrderStatus" into "SalesOrderStatus" and "PurchaseOrderStatus"

This commit is contained in:
Oliver Walters
2020-04-23 20:38:09 +10:00
parent 7f020cbbf6
commit 435c13cf7c
19 changed files with 171 additions and 91 deletions

View File

@ -7,7 +7,8 @@
{% include "status_codes.html" with label='stock' options=stock_status_codes %}
{% include "status_codes.html" with label='build' options=build_status_codes %}
{% include "status_codes.html" with label='order' options=order_status_codes %}
{% include "status_codes.html" with label='purchaseOrder' options=purchase_order_status_codes %}
{% include "status_codes.html" with label='salesOrder' options=sales_order_status_codes %}
function getAvailableTableFilters(tableKey) {
@ -52,11 +53,20 @@ function getAvailableTableFilters(tableKey) {
}
// Filters for the "Order" table
if (tableKey == "order") {
if (tableKey == "purchaseorder") {
return {
status: {
title: '{% trans "Order status" %}',
options: orderCodes,
options: purchaseOrderCodes,
},
};
}
if (tableKey == "salesorder") {
return {
status: {
title: '{% trans "Order status" %}',
options: salesOrderCodes,
},
};
}