IDEMPIERE-1999 Adding support for over shipment / based on attached patch (MInOut.patch) from hengsin

This commit is contained in:
Carlos Ruiz 2014-10-15 12:18:37 -05:00
parent e2fdfddacc
commit d4e227aafe
1 changed files with 1 additions and 4 deletions

View File

@ -1463,10 +1463,7 @@ public class MInOut extends X_M_InOut implements DocAction
// Correct Order Line // Correct Order Line
if (product != null && oLine != null) // other in VMatch.createMatchRecord if (product != null && oLine != null) // other in VMatch.createMatchRecord
{ {
if (isSOTrx()) oLine.setQtyReserved(oLine.getQtyReserved().subtract(sLine.getMovementQty().subtract(sLine.getQtyOverReceipt())));
oLine.setQtyReserved(oLine.getQtyReserved().subtract(sLine.getMovementQty()));
else
oLine.setQtyReserved(oLine.getQtyReserved().subtract(sLine.getMovementQty().subtract(sLine.getQtyOverReceipt())));
} }
// Update Sales Order Line // Update Sales Order Line