Fix summation of build allocation items

This commit is contained in:
Oliver Walters 2020-03-19 09:01:22 +11:00
parent daa8496157
commit 3fd0cf67b6

View File

@ -71,7 +71,7 @@ function loadAllocationTable(table, part_id, part, url, required, button) {
var count = 0; var count = 0;
for (var i = 0; i < results.length; i++) { for (var i = 0; i < results.length; i++) {
count += results[i].quantity; count += parseFloat(results[i].quantity);
} }
updateAllocationTotal(part_id, count, required); updateAllocationTotal(part_id, count, required);