IDEMPIERE-2218 Cannot reverse journal with control amount
This commit is contained in:
parent
2d71a422d1
commit
d04844a375
|
@ -756,6 +756,7 @@ public class MJournal extends X_GL_Journal implements DocAction
|
|||
// Reverse indicator
|
||||
StringBuilder msgd = new StringBuilder("(->").append(getDocumentNo()).append(")");
|
||||
reverse.addDescription(msgd.toString());
|
||||
reverse.setControlAmt(getControlAmt().negate());
|
||||
//FR [ 1948157 ]
|
||||
reverse.setReversal_ID(getGL_Journal_ID());
|
||||
if (!reverse.save())
|
||||
|
|
|
@ -630,6 +630,7 @@ public class MJournalBatch extends X_GL_JournalBatch implements DocAction
|
|||
// Reverse indicator
|
||||
StringBuilder msgd = new StringBuilder("(->").append(getDocumentNo()).append(")");
|
||||
reverse.addDescription(msgd.toString());
|
||||
reverse.setControlAmt(getControlAmt().negate());
|
||||
//[ 1948157 ]
|
||||
reverse.setReversal_ID(getGL_JournalBatch_ID());
|
||||
reverse.saveEx();
|
||||
|
|
Loading…
Reference in New Issue