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
|
// Reverse indicator
|
||||||
StringBuilder msgd = new StringBuilder("(->").append(getDocumentNo()).append(")");
|
StringBuilder msgd = new StringBuilder("(->").append(getDocumentNo()).append(")");
|
||||||
reverse.addDescription(msgd.toString());
|
reverse.addDescription(msgd.toString());
|
||||||
|
reverse.setControlAmt(getControlAmt().negate());
|
||||||
//FR [ 1948157 ]
|
//FR [ 1948157 ]
|
||||||
reverse.setReversal_ID(getGL_Journal_ID());
|
reverse.setReversal_ID(getGL_Journal_ID());
|
||||||
if (!reverse.save())
|
if (!reverse.save())
|
||||||
|
|
|
@ -630,6 +630,7 @@ public class MJournalBatch extends X_GL_JournalBatch implements DocAction
|
||||||
// Reverse indicator
|
// Reverse indicator
|
||||||
StringBuilder msgd = new StringBuilder("(->").append(getDocumentNo()).append(")");
|
StringBuilder msgd = new StringBuilder("(->").append(getDocumentNo()).append(")");
|
||||||
reverse.addDescription(msgd.toString());
|
reverse.addDescription(msgd.toString());
|
||||||
|
reverse.setControlAmt(getControlAmt().negate());
|
||||||
//[ 1948157 ]
|
//[ 1948157 ]
|
||||||
reverse.setReversal_ID(getGL_JournalBatch_ID());
|
reverse.setReversal_ID(getGL_JournalBatch_ID());
|
||||||
reverse.saveEx();
|
reverse.saveEx();
|
||||||
|
|
Loading…
Reference in New Issue