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:
@ -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);
|
||||
|
Reference in New Issue
Block a user