diff --git a/InvenTree/templates/js/build.js b/InvenTree/templates/js/build.js index a3c7bd5186..0455c8a6c4 100644 --- a/InvenTree/templates/js/build.js +++ b/InvenTree/templates/js/build.js @@ -650,7 +650,13 @@ function loadBuildTable(table, options) { value = `${prefix}${value}`; } - return renderLink(value, '/build/' + row.pk + '/'); + var html = renderLink(value, '/build/' + row.pk + '/'); + + if (row.overdue) { + html += makeIconBadge('fa-calendar-times icon-red', '{% trans "Build order is overdue" %}'); + } + + return html; } }, { @@ -699,6 +705,11 @@ function loadBuildTable(table, options) { title: '{% trans "Created" %}', sortable: true, }, + { + field: 'target_date', + title: '{% trans "Target Date" %}', + sortable: true, + }, { field: 'completion_date', title: '{% trans "Completed" %}', diff --git a/InvenTree/templates/js/table_filters.js b/InvenTree/templates/js/table_filters.js index 153411d4e9..f1f5c12732 100644 --- a/InvenTree/templates/js/table_filters.js +++ b/InvenTree/templates/js/table_filters.js @@ -184,7 +184,11 @@ function getAvailableTableFilters(tableKey) { active: { type: 'bool', title: '{% trans "Active" %}', - } + }, + overdue: { + type: 'bool', + title: '{% trans "Overdue" %}', + }, }; }