mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Bug fix for displaying batch information
This commit is contained in:
parent
1519a4f882
commit
1dfbd30294
@ -108,7 +108,7 @@ function renderStockItem(name, data, parameters={}, options={}) {
|
|||||||
stock_detail = `{% trans "Quantity" %}: ${data.quantity}`;
|
stock_detail = `{% trans "Quantity" %}: ${data.quantity}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.batch != null) {
|
if (data.batch) {
|
||||||
stock_detail += ` - <small>{% trans "Batch" %}: ${data.batch}</small>`;
|
stock_detail += ` - <small>{% trans "Batch" %}: ${data.batch}</small>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -964,7 +964,7 @@ function adjustStock(action, items, options={}) {
|
|||||||
quantity = `#${item.serial}`;
|
quantity = `#${item.serial}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.batch != null) {
|
if (item.batch) {
|
||||||
quantity += ` - <small>{% trans "Batch" %}: ${item.batch}</small>`;
|
quantity += ` - <small>{% trans "Batch" %}: ${item.batch}</small>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user