AP2-512 Need to post GL Journal for balance forward that includes CAD and USD (IDEMPIERE-3777)

This commit is contained in:
Elaine Tan 2018-08-03 12:00:26 +08:00
parent a82536b2c6
commit e0ab57bb42
2 changed files with 6 additions and 3 deletions

View File

@ -94,6 +94,9 @@ public class Doc_GLJournal extends Doc
docLine.setAccount (account);
// -- Organization of Line was set to Org of Account
list.add(docLine);
if (docLine.getC_Currency_ID() != getC_Currency_ID())
setIsMultiCurrency(true);
}
// Return Array
int size = list.size();

View File

@ -527,8 +527,8 @@ public class MJournal extends X_GL_Journal implements DocAction
}
// end BF [2789319] No check of Actual, Budget, Statistical attribute
AmtSourceDr = AmtSourceDr.add(line.getAmtSourceDr());
AmtSourceCr = AmtSourceCr.add(line.getAmtSourceCr());
AmtSourceDr = AmtSourceDr.add(line.getAmtAcctDr()); // multi-currency
AmtSourceCr = AmtSourceCr.add(line.getAmtAcctCr());
}
setTotalDr(AmtSourceDr);
setTotalCr(AmtSourceCr);