mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Improve grouping
This commit is contained in:
parent
910d9a15f6
commit
8703ee90c6
@ -88,12 +88,12 @@ function loadStockTable(table, options) {
|
|||||||
data.forEach(function(item) {
|
data.forEach(function(item) {
|
||||||
var batch = item.batch;
|
var batch = item.batch;
|
||||||
|
|
||||||
if (!batch) {
|
if (!batch || batch == '') {
|
||||||
batch = '-';
|
batch = '-';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!batches.includes(item.batch)) {
|
if (!batches.includes(batch)) {
|
||||||
batches.push(item.batch);
|
batches.push(batch);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user