Improve grouping

This commit is contained in:
Oliver Walters 2019-09-07 10:41:22 +10:00
parent 910d9a15f6
commit 8703ee90c6

View File

@ -88,12 +88,12 @@ function loadStockTable(table, options) {
data.forEach(function(item) {
var batch = item.batch;
if (!batch) {
if (!batch || batch == '') {
batch = '-';
}
if (!batches.includes(item.batch)) {
batches.push(item.batch);
if (!batches.includes(batch)) {
batches.push(batch);
}
});