Fix [2781661] - Doc Engine for Charge in Cash Journal

Thanks to Cong Le (vietsourcing)
https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2781661&group_id=176962
This commit is contained in:
Carlos Ruiz 2009-05-09 15:38:50 +00:00
parent dd4906fafc
commit 1381024a9e
1 changed files with 2 additions and 2 deletions

View File

@ -195,8 +195,8 @@ public class Doc_Cash extends Doc
{ // amount is negative
// Charge DR
// CashAsset CR
fact.createLine(line, line.getChargeAccount(as, line.getAmount()),
getC_Currency_ID(), line.getAmount().negate(), null);
fact.createLine(line, line.getChargeAccount(as, line.getAmount().negate()),
getC_Currency_ID(), line.getAmount().negate());
// fact.createLine(line, getAccount(Doc.ACCTTYPE_CashAsset, as),
// p_vo.C_Currency_ID, null, line.getAmount().negate());
assetAmt = assetAmt.subtract(line.getAmount().negate());