mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Dynamic control of information to make cleaner supplier and manufacturer tables
This commit is contained in:
@ -133,10 +133,11 @@ function loadManufacturerPartTable(table, url, options) {
|
||||
switchable: false,
|
||||
},
|
||||
{
|
||||
visible: params['part_detail'],
|
||||
switchable: params['part_detail'],
|
||||
sortable: true,
|
||||
field: 'part_detail.full_name',
|
||||
title: '{% trans "Part" %}',
|
||||
switchable: false,
|
||||
formatter: function(value, row, index, field) {
|
||||
|
||||
var url = `/part/${row.part}/`;
|
||||
@ -230,10 +231,11 @@ function loadSupplierPartTable(table, url, options) {
|
||||
switchable: false,
|
||||
},
|
||||
{
|
||||
visible: params['part_detail'],
|
||||
switchable: params['part_detail'],
|
||||
sortable: true,
|
||||
field: 'part_detail.full_name',
|
||||
title: '{% trans "Part" %}',
|
||||
switchable: false,
|
||||
formatter: function(value, row, index, field) {
|
||||
|
||||
var url = `/part/${row.part}/`;
|
||||
@ -280,6 +282,8 @@ function loadSupplierPartTable(table, url, options) {
|
||||
}
|
||||
},
|
||||
{
|
||||
visible: params['manufacturer_detail'],
|
||||
switchable: params['manufacturer_detail'],
|
||||
sortable: true,
|
||||
field: 'manufacturer',
|
||||
title: '{% trans "Manufacturer" %}',
|
||||
@ -296,6 +300,8 @@ function loadSupplierPartTable(table, url, options) {
|
||||
}
|
||||
},
|
||||
{
|
||||
visible: params['manufacturer_detail'],
|
||||
switchable: params['manufacturer_detail'],
|
||||
sortable: true,
|
||||
field: 'MPN',
|
||||
title: '{% trans "MPN" %}',
|
||||
|
Reference in New Issue
Block a user