2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00
This commit is contained in:
Oliver Walters
2020-10-29 09:45:42 +11:00
parent a263d2fdcd
commit 05ce17f8df
3 changed files with 11 additions and 4 deletions

View File

@ -568,8 +568,8 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
var progressA = parseFloat(aA) / qA;
var progressB = parseFloat(aB) / qB;
// Handle the case where both are at 100%
if (progressA == 1.0 && progressB == 1.0) {
// Handle the case where both ratios are equal
if (progressA == progressB) {
return (qA < qB) ? 1 : -1;
}