mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 13:06:45 +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',
|
field: 'quantity',
|
||||||
title: '{% trans "Required 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…
x
Reference in New Issue
Block a user