Reorder BOM table

This commit is contained in:
Oliver Walters 2019-05-08 13:42:20 +10:00
parent 40d8332e7f
commit d96989f640

View File

@ -113,6 +113,16 @@ function loadBomTable(table, options) {
sortable: true, sortable: true,
} }
); );
// Part notes
cols.push(
{
field: 'note',
title: 'Notes',
searchable: true,
sortable: false,
}
);
if (options.editable) { if (options.editable) {
cols.push({ cols.push({
@ -124,6 +134,7 @@ function loadBomTable(table, options) {
} }
}); });
} }
else { else {
cols.push( 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) // Configure the table (bootstrap-table)
table.bootstrapTable({ table.bootstrapTable({