mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Display badge indicating variant stock can be used
This commit is contained in:
parent
be5c5496b2
commit
890741ef5d
@ -378,6 +378,10 @@ function loadBomTable(table, options) {
|
|||||||
html += makeIconBadge('fa-exchange-alt', '{% trans "Substitutes Available" %}');
|
html += makeIconBadge('fa-exchange-alt', '{% trans "Substitutes Available" %}');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (row.allow_variants) {
|
||||||
|
html += makeIconBadge('fa-sitemap', '{% trans "Variant stock allowed" %}');
|
||||||
|
}
|
||||||
|
|
||||||
// Display an extra icon if this part is an assembly
|
// Display an extra icon if this part is an assembly
|
||||||
if (sub_part.assembly) {
|
if (sub_part.assembly) {
|
||||||
var text = `<span title='{% trans "Open subassembly" %}' class='fas fa-stream label-right'></span>`;
|
var text = `<span title='{% trans "Open subassembly" %}' class='fas fa-stream label-right'></span>`;
|
||||||
|
@ -738,7 +738,11 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
|
|||||||
html += makePartIcons(row.sub_part_detail);
|
html += makePartIcons(row.sub_part_detail);
|
||||||
|
|
||||||
if (row.substitutes && row.substitutes.length > 0) {
|
if (row.substitutes && row.substitutes.length > 0) {
|
||||||
html += makeIconBadge('fa-exchange-alt', '{% trans "Substitutes Available" %}');
|
html += makeIconBadge('fa-exchange-alt', '{% trans "Substitute parts available" %}');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (row.allow_variants) {
|
||||||
|
html += makeIconBadge('fa-sitemap', '{% trans "Variant stock allowed" %}');
|
||||||
}
|
}
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user