From 60ac16df142ede8ceb0d3825b220f798837f8676 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 25 Mar 2010 02:38:34 +0000 Subject: [PATCH] BF [2138047] Reversed MM documents DocumentNo issues Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2138047 --- base/src/org/compiere/model/MMovement.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MMovement.java b/base/src/org/compiere/model/MMovement.java index f8055ef365..a34b6233e7 100644 --- a/base/src/org/compiere/model/MMovement.java +++ b/base/src/org/compiere/model/MMovement.java @@ -49,7 +49,7 @@ public class MMovement extends X_M_Movement implements DocAction /** * */ - private static final long serialVersionUID = 3634169801280239573L; + private static final long serialVersionUID = -1628932946440487727L; /** * Standard Constructor @@ -88,6 +88,8 @@ public class MMovement extends X_M_Movement implements DocAction private MMovementLine[] m_lines = null; /** Confirmations */ private MMovementConfirm[] m_confirms = null; + /** Reversal Indicator */ + public static String REVERSE_INDICATOR = "^"; /** * Get Lines @@ -700,6 +702,7 @@ public class MMovement extends X_M_Movement implements DocAction reversal.setIsInTransit (false); reversal.setPosted(false); reversal.setProcessed(false); + reversal.setDocumentNo(getDocumentNo() + REVERSE_INDICATOR); // indicate reversals reversal.addDescription("{->" + getDocumentNo() + ")"); //FR [ 1948157 ] reversal.setReversal_ID(getM_Movement_ID());