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:
parent
dd4906fafc
commit
1381024a9e
|
@ -195,8 +195,8 @@ public class Doc_Cash extends Doc
|
||||||
{ // amount is negative
|
{ // amount is negative
|
||||||
// Charge DR
|
// Charge DR
|
||||||
// CashAsset CR
|
// CashAsset CR
|
||||||
fact.createLine(line, line.getChargeAccount(as, line.getAmount()),
|
fact.createLine(line, line.getChargeAccount(as, line.getAmount().negate()),
|
||||||
getC_Currency_ID(), line.getAmount().negate(), null);
|
getC_Currency_ID(), line.getAmount().negate());
|
||||||
// fact.createLine(line, getAccount(Doc.ACCTTYPE_CashAsset, as),
|
// fact.createLine(line, getAccount(Doc.ACCTTYPE_CashAsset, as),
|
||||||
// p_vo.C_Currency_ID, null, line.getAmount().negate());
|
// p_vo.C_Currency_ID, null, line.getAmount().negate());
|
||||||
assetAmt = assetAmt.subtract(line.getAmount().negate());
|
assetAmt = assetAmt.subtract(line.getAmount().negate());
|
||||||
|
|
Loading…
Reference in New Issue