mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-09 07:00:56 +00:00
Pack quantity improvements (#3661)
* Specify serializer label * Add units to part grid view * improve display of stock units in part table * Add units display to stock on part page * Display units in supplier part table * Simplify stock quantity display in stock table
This commit is contained in:
@ -995,6 +995,15 @@ function loadSupplierPartTable(table, url, options) {
|
||||
field: 'pack_size',
|
||||
title: '{% trans "Pack Quantity" %}',
|
||||
sortable: true,
|
||||
formatter: function(value, row) {
|
||||
var output = `${value}`;
|
||||
|
||||
if (row.part_detail) {
|
||||
output += ` ${row.part_detail.units}`;
|
||||
}
|
||||
|
||||
return output;
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'link',
|
||||
|
Reference in New Issue
Block a user