mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Filter builds by "overdue" status
This commit is contained in:
parent
51da26d21d
commit
c8c50af54b
@ -650,7 +650,13 @@ function loadBuildTable(table, options) {
|
|||||||
value = `${prefix}${value}`;
|
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" %}',
|
title: '{% trans "Created" %}',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'target_date',
|
||||||
|
title: '{% trans "Target Date" %}',
|
||||||
|
sortable: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'completion_date',
|
field: 'completion_date',
|
||||||
title: '{% trans "Completed" %}',
|
title: '{% trans "Completed" %}',
|
||||||
|
@ -184,7 +184,11 @@ function getAvailableTableFilters(tableKey) {
|
|||||||
active: {
|
active: {
|
||||||
type: 'bool',
|
type: 'bool',
|
||||||
title: '{% trans "Active" %}',
|
title: '{% trans "Active" %}',
|
||||||
}
|
},
|
||||||
|
overdue: {
|
||||||
|
type: 'bool',
|
||||||
|
title: '{% trans "Overdue" %}',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user