From 3e27a3b739c0925aeb1e09fd027d4a6183bad4ef Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 13 May 2023 22:17:26 +1000 Subject: [PATCH] build javascript updates --- InvenTree/templates/js/translated/build.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/InvenTree/templates/js/translated/build.js b/InvenTree/templates/js/translated/build.js index cdf3b10f4c..b18f19d49e 100644 --- a/InvenTree/templates/js/translated/build.js +++ b/InvenTree/templates/js/translated/build.js @@ -46,6 +46,9 @@ function buildFormFields() { }, title: {}, quantity: {}, + project_code: { + icon: 'fa-list', + }, priority: {}, parent: { filters: { @@ -2665,6 +2668,18 @@ function loadBuildTable(table, options) { title: '{% trans "Description" %}', switchable: true, }, + { + field: 'project_code', + title: '{% trans "Project Code" %}', + sortable: true, + switchable: global_settings.PROJECT_CODES_ENABLED, + visible: global_settings.PROJECT_CODES_ENABLED, + formatter: function(value, row) { + if (row.project_code_detail) { + return `${row.project_code_detail.code}`; + } + } + }, { field: 'priority', title: '{% trans "Priority" %}',