mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-03 13:58:47 +00:00
JS linting
This commit is contained in:
parent
9a62fe6993
commit
190822a680
@ -33,6 +33,7 @@
|
|||||||
loadPartPurchaseOrderTable,
|
loadPartPurchaseOrderTable,
|
||||||
loadPartTable,
|
loadPartTable,
|
||||||
loadPartTestTemplateTable,
|
loadPartTestTemplateTable,
|
||||||
|
loadPartSchedulingChart,
|
||||||
loadPartVariantTable,
|
loadPartVariantTable,
|
||||||
loadRelatedPartsTable,
|
loadRelatedPartsTable,
|
||||||
loadSellPricingChart,
|
loadSellPricingChart,
|
||||||
@ -2020,7 +2021,7 @@ function loadPartSchedulingChart(canvas_id, part_id) {
|
|||||||
title: entry.title,
|
title: entry.title,
|
||||||
label: entry.label,
|
label: entry.label,
|
||||||
url: entry.url,
|
url: entry.url,
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2034,7 +2035,7 @@ function loadPartSchedulingChart(canvas_id, part_id) {
|
|||||||
|
|
||||||
quantity += stock_schedule[idx].delta;
|
quantity += stock_schedule[idx].delta;
|
||||||
|
|
||||||
stock_schedule[idx].x = stock_schedule[idx].date.format("YYYY-MM-DD");
|
stock_schedule[idx].x = stock_schedule[idx].date.format('YYYY-MM-DD');
|
||||||
stock_schedule[idx].y = quantity;
|
stock_schedule[idx].y = quantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2042,11 +2043,11 @@ function loadPartSchedulingChart(canvas_id, part_id) {
|
|||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
datasets: [{
|
datasets: [{
|
||||||
label: '{% trans "Scheduled Stock Quantities" %}',
|
label: '{% trans "Scheduled Stock Quantities" %}',
|
||||||
data: stock_schedule,
|
data: stock_schedule,
|
||||||
backgroundColor: 'rgb(220, 160, 80)',
|
backgroundColor: 'rgb(220, 160, 80)',
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
borderColor: 'rgb(90, 130, 150)'
|
borderColor: 'rgb(90, 130, 150)'
|
||||||
}],
|
}],
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2084,7 +2085,7 @@ function loadPartSchedulingChart(canvas_id, part_id) {
|
|||||||
if (delta == 0) {
|
if (delta == 0) {
|
||||||
delta = '';
|
delta = '';
|
||||||
} else {
|
} else {
|
||||||
delta = ` (${item.raw.delta > 0 ? "+" : ""}${item.raw.delta})`;
|
delta = ` (${item.raw.delta > 0 ? '+' : ''}${item.raw.delta})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return `{% trans "Quantity" %}: ${item.raw.y}${delta}`;
|
return `{% trans "Quantity" %}: ${item.raw.y}${delta}`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user