Bug fix for displaying batch information

This commit is contained in:
Oliver Walters 2022-04-19 17:53:58 +10:00
parent 1519a4f882
commit 1dfbd30294
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ function renderStockItem(name, data, parameters={}, options={}) {
stock_detail = `{% trans "Quantity" %}: ${data.quantity}`;
}
if (data.batch != null) {
if (data.batch) {
stock_detail += ` - <small>{% trans "Batch" %}: ${data.batch}</small>`;
}
}

View File

@ -964,7 +964,7 @@ function adjustStock(action, items, options={}) {
quantity = `#${item.serial}`;
}
if (item.batch != null) {
if (item.batch) {
quantity += ` - <small>{% trans "Batch" %}: ${item.batch}</small>`;
}