diff --git a/org.adempiere.base/src/org/compiere/model/MInOut.java b/org.adempiere.base/src/org/compiere/model/MInOut.java index fc10039433..411df8ff82 100644 --- a/org.adempiere.base/src/org/compiere/model/MInOut.java +++ b/org.adempiere.base/src/org/compiere/model/MInOut.java @@ -1382,7 +1382,7 @@ public class MInOut extends X_M_InOut implements DocAction } else { - if (ma.getMovementQty().compareTo(orderedQtyToUpdate) >= 0) + if (orderedQtyToUpdate.compareTo(ma.getMovementQty()) >= 0) { orderedQtyToUpdate = orderedQtyToUpdate.subtract(ma.getMovementQty()); reservedDiff = ma.getMovementQty().negate();