AP2-512 Need to post GL Journal for balance forward that includes CAD and USD (IDEMPIERE-3777)
This commit is contained in:
parent
a82536b2c6
commit
e0ab57bb42
|
@ -93,7 +93,10 @@ public class Doc_GLJournal extends Doc
|
||||||
MAccount account = line.getAccount_Combi();
|
MAccount account = line.getAccount_Combi();
|
||||||
docLine.setAccount (account);
|
docLine.setAccount (account);
|
||||||
// -- Organization of Line was set to Org of Account
|
// -- Organization of Line was set to Org of Account
|
||||||
list.add(docLine);
|
list.add(docLine);
|
||||||
|
|
||||||
|
if (docLine.getC_Currency_ID() != getC_Currency_ID())
|
||||||
|
setIsMultiCurrency(true);
|
||||||
}
|
}
|
||||||
// Return Array
|
// Return Array
|
||||||
int size = list.size();
|
int size = list.size();
|
||||||
|
|
|
@ -527,8 +527,8 @@ public class MJournal extends X_GL_Journal implements DocAction
|
||||||
}
|
}
|
||||||
// end BF [2789319] No check of Actual, Budget, Statistical attribute
|
// end BF [2789319] No check of Actual, Budget, Statistical attribute
|
||||||
|
|
||||||
AmtSourceDr = AmtSourceDr.add(line.getAmtSourceDr());
|
AmtSourceDr = AmtSourceDr.add(line.getAmtAcctDr()); // multi-currency
|
||||||
AmtSourceCr = AmtSourceCr.add(line.getAmtSourceCr());
|
AmtSourceCr = AmtSourceCr.add(line.getAmtAcctCr());
|
||||||
}
|
}
|
||||||
setTotalDr(AmtSourceDr);
|
setTotalDr(AmtSourceDr);
|
||||||
setTotalCr(AmtSourceCr);
|
setTotalCr(AmtSourceCr);
|
||||||
|
|
Loading…
Reference in New Issue