2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 19:46:46 +00:00

Small fix for build allocation table (#4604)

This commit is contained in:
Oliver 2023-04-12 14:51:29 +10:00 committed by GitHub
parent a06509491d
commit b062accfe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1921,7 +1921,7 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
if (available_stock <= 0) { if (available_stock <= 0) {
icons += `<span class='badge rounded-pill bg-danger'>{% trans "No Stock Available" %}</span>`; icons += `<span class='badge rounded-pill bg-danger'>{% trans "No Stock Available" %}</span>`;
} else { } else {
var extra = ''; let extra = '';
if ((substitute_stock > 0) && (variant_stock > 0)) { if ((substitute_stock > 0) && (variant_stock > 0)) {
extra = '{% trans "Includes variant and substitute stock" %}'; extra = '{% trans "Includes variant and substitute stock" %}';
} else if (variant_stock > 0) { } else if (variant_stock > 0) {
@ -1931,7 +1931,7 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
} }
if (extra) { if (extra) {
icons += makeInfoButton('fa-info-circle icon-blue', extra); icons += makeIconBadge('fa-info-circle icon-blue', extra);
} }
} }
} }