IDEMPIERE-2330 Reserved Qty is incorrect when voiding Shipment
This commit is contained in:
parent
167df1cee9
commit
812b3944d9
|
@ -2405,6 +2405,10 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
so.setLink_Order_ID(0);
|
so.setLink_Order_ID(0);
|
||||||
so.saveEx();
|
so.saveEx();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!createReversals())
|
||||||
|
return false;
|
||||||
|
|
||||||
MOrderLine[] lines = getLines(true, MOrderLine.COLUMNNAME_M_Product_ID);
|
MOrderLine[] lines = getLines(true, MOrderLine.COLUMNNAME_M_Product_ID);
|
||||||
for (int i = 0; i < lines.length; i++)
|
for (int i = 0; i < lines.length; i++)
|
||||||
{
|
{
|
||||||
|
@ -2448,9 +2452,6 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
// UnLink All Requisitions
|
// UnLink All Requisitions
|
||||||
MRequisitionLine.unlinkC_Order_ID(getCtx(), get_ID(), get_TrxName());
|
MRequisitionLine.unlinkC_Order_ID(getCtx(), get_ID(), get_TrxName());
|
||||||
|
|
||||||
if (!createReversals())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
/* globalqss - 2317928 - Reactivating/Voiding order must reset posted */
|
/* globalqss - 2317928 - Reactivating/Voiding order must reset posted */
|
||||||
MFactAcct.deleteEx(MOrder.Table_ID, getC_Order_ID(), get_TrxName());
|
MFactAcct.deleteEx(MOrder.Table_ID, getC_Order_ID(), get_TrxName());
|
||||||
setPosted(false);
|
setPosted(false);
|
||||||
|
@ -2551,7 +2552,7 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Close Document.
|
* Close Document.
|
||||||
* Cancel not delivered Qunatities
|
* Cancel not delivered Quantities
|
||||||
* @return true if success
|
* @return true if success
|
||||||
*/
|
*/
|
||||||
public boolean closeIt()
|
public boolean closeIt()
|
||||||
|
|
Loading…
Reference in New Issue