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

Refactor the purchase-order table

- Filter by order status
This commit is contained in:
Oliver Walters
2020-04-11 20:56:31 +10:00
parent ba7c0bdea0
commit 6a0c5b78ae
5 changed files with 26 additions and 71 deletions

View File

@ -1,3 +1,6 @@
/*
* Status codes for the {{ label }} model.
*/
var {{ label }}Codes = {
{% for opt in options %}'{{ opt.key }}': {
key: '{{ opt.key }}',
@ -6,6 +9,11 @@ var {{ label }}Codes = {
},{% endfor %}
};
/*
* Render the status for a {{ label }} object.
* Uses the values specified in "status_codes.py"
* This function is generated by the "status_codes.html" template
*/
function {{ label }}StatusDisplay(key) {
key = String(key);