From 124c49217b16324f8e21a3496b992e5342a5f15f Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 23 Jun 2012 23:54:10 -0500 Subject: [PATCH] IDEMPIERE-296 Bug in MInOut for reverse complete - thanks to Emiliano Pereyra --- org.adempiere.base/src/org/compiere/model/MInOut.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MInOut.java b/org.adempiere.base/src/org/compiere/model/MInOut.java index 691a22ff85..ee2282bced 100644 --- a/org.adempiere.base/src/org/compiere/model/MInOut.java +++ b/org.adempiere.base/src/org/compiere/model/MInOut.java @@ -2112,6 +2112,8 @@ public class MInOut extends X_M_InOut implements DocAction // Void Confirmations setDocStatus(DOCSTATUS_Reversed); // need to set & save docstatus to be able to check it in MInOutConfirm.voidIt() saveEx(); + //FR1948157 + this.setReversal_ID(reversal.getM_InOut_ID()); voidConfirmations(); // After reverseCorrect @@ -2120,8 +2122,6 @@ public class MInOut extends X_M_InOut implements DocAction return false; m_processMsg = reversal.getDocumentNo(); - //FR1948157 - this.setReversal_ID(reversal.getM_InOut_ID()); setProcessed(true); setDocStatus(DOCSTATUS_Reversed); // may come from void setDocAction(DOCACTION_None);