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:
parent
a9640975a4
commit
ce45dcf0f3
|
@ -1382,7 +1382,7 @@ public class MInOut extends X_M_InOut implements DocAction
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ma.getMovementQty().compareTo(orderedQtyToUpdate) >= 0)
|
if (orderedQtyToUpdate.compareTo(ma.getMovementQty()) >= 0)
|
||||||
{
|
{
|
||||||
orderedQtyToUpdate = orderedQtyToUpdate.subtract(ma.getMovementQty());
|
orderedQtyToUpdate = orderedQtyToUpdate.subtract(ma.getMovementQty());
|
||||||
reservedDiff = ma.getMovementQty().negate();
|
reservedDiff = ma.getMovementQty().negate();
|
||||||
|
|
Loading…
Reference in New Issue