IDEMPIERE-1999 Adding support for over shipment / based on attached patch (MInOut.patch) from hengsin
This commit is contained in:
parent
e2fdfddacc
commit
d4e227aafe
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue