2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

show supplier_part in stock-table

#1323
This commit is contained in:
2021-07-03 02:04:39 +02:00
parent ded0fb5353
commit 57ce82de32
2 changed files with 15 additions and 0 deletions

View File

@ -685,6 +685,20 @@ function loadStockTable(table, options) {
return renderLink(text, link);
}
},
{
field: 'supplier_part',
title: '{% trans "Supplier Part" %}',
formatter: function(value, row) {
if (!value) {
return '-';
}
var link = `/supplier-part/${row.supplier_part}/`;
var text = `${row.supplier_part_detail.SKU}`;
return renderLink(text, link);
}
},
{
field: 'purchase_price',
title: '{% trans "Purchase Price" %}',