mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fixing allocation sorting
This commit is contained in:
parent
8b515571ca
commit
c8defae575
@ -693,9 +693,6 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
|
|||||||
var qA = rowA.quantity;
|
var qA = rowA.quantity;
|
||||||
var qB = rowB.quantity;
|
var qB = rowB.quantity;
|
||||||
|
|
||||||
qA *= output.quantity;
|
|
||||||
qB *= output.quantity;
|
|
||||||
|
|
||||||
// Handle the case where both numerators are zero
|
// Handle the case where both numerators are zero
|
||||||
if ((aA == 0) && (aB == 0)) {
|
if ((aA == 0) && (aB == 0)) {
|
||||||
return (qA > qB) ? 1 : -1;
|
return (qA > qB) ? 1 : -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user