mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-22 15:56:14 +00:00
Add "optional" field to BomItem
- Defaults to False - Indicates that the BomItem is "optional" for a build - Will be used in the future when calculating if a Build output is fully allocated!
This commit is contained in:
1 parent
c1595396c4
commit
3ee7be1d58
6 files changed
+41
-4
No files matched your search
@@ -169,6 +169,10 @@ function loadBomTable(table, options) {
|
||||
// Let's make it a bit more pretty
|
||||
text = parseFloat(text);
|
||||
|
||||
if (row.optional) {
|
||||
text += " ({% trans "Optional" %})";
|
||||
}
|
||||
|
||||
if (row.overage) {
|
||||
text += "<small> (+" + row.overage + ") </small>";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user