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 ).

This commit is contained in:
Heng Sin Low 2014-02-18 15:34:53 +08:00
parent a9640975a4
commit ce45dcf0f3
1 changed files with 1 additions and 1 deletions

View File

@ -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();