From ce45dcf0f391a23c03c6eeaf319660d0741600bc Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 18 Feb 2014 15:34:53 +0800 Subject: [PATCH] IDEMPIERE-1530 Allow Material Receipt Line with Quantity Receipt more then Purchase Order Line's Quantity Ordered. Fixed update of QtyOrder ( PO Qty pending MR ). --- org.adempiere.base/src/org/compiere/model/MInOut.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();