From d96989f6405f20f2648c6ae00183e28726a7924d Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 8 May 2019 13:42:20 +1000 Subject: [PATCH] Reorder BOM table --- InvenTree/static/script/inventree/bom.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/InvenTree/static/script/inventree/bom.js b/InvenTree/static/script/inventree/bom.js index 777acbd4ef..55a629fada 100644 --- a/InvenTree/static/script/inventree/bom.js +++ b/InvenTree/static/script/inventree/bom.js @@ -113,6 +113,16 @@ function loadBomTable(table, options) { sortable: true, } ); + + // Part notes + cols.push( + { + field: 'note', + title: 'Notes', + searchable: true, + sortable: false, + } + ); if (options.editable) { cols.push({ @@ -124,6 +134,7 @@ function loadBomTable(table, options) { } }); } + else { cols.push( { @@ -149,16 +160,6 @@ function loadBomTable(table, options) { ); } - // Part notes - cols.push( - { - field: 'note', - title: 'Notes', - searchable: true, - sortable: false, - } - ); - // Configure the table (bootstrap-table) table.bootstrapTable({