mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Indicate that a BOM item is inherited in the "uses" table
This commit is contained in:
parent
f3782ae8bc
commit
66032ea77a
@ -982,6 +982,15 @@ function loadUsedInTable(table, part_id, options={}) {
|
||||
{
|
||||
field: 'quantity',
|
||||
title: '{% trans "Required Quantity" %}',
|
||||
formatter: function(value, row) {
|
||||
var html = value;
|
||||
|
||||
if (row.parent != 'top-level-item') {
|
||||
html += ` <em>({% trans "Inherited from parent BOM" %})</em>`;
|
||||
}
|
||||
|
||||
return html;
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user