2
0
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:
Oliver
2022-09-08 13:44:53 +10:00
committed by GitHub
parent 2242088f90
commit b827f14bf6
7 changed files with 39 additions and 28 deletions

View File

@ -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',