details: /erp/devel/pi/rev/029b1eeaade0
changeset: 8560:029b1eeaade0
user: Sathiyan Sivaprakasam <sathiyan.sivaprakasam <at> openbravo.com>
date: Tue Oct 19 09:56:45 2010 +0530
summary: Fixes Issue 14734: the accounting entries generated by a cash with
glitem is wrong
diffstat:
src/org/openbravo/erpCommon/ad_forms/DocCash.java | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (17 lines):
diff -r 1ee95cec6ce6 -r 029b1eeaade0
src/org/openbravo/erpCommon/ad_forms/DocCash.java
--- a/src/org/openbravo/erpCommon/ad_forms/DocCash.java Mon Oct 18 12:51:26
2010 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/DocCash.java Tue Oct 19 09:56:45
2010 +0530
@@ -298,10 +298,9 @@
// Charge DR
// CashAsset CR
log4jDocCash.debug("********** DocCash - factAcct - account - "
- + line.getGlitemAccount(as, new BigDecimal(getAmount()),
conn).C_ValidCombination_ID);
- fact.createLine(line, line.getGlitemAccount(as, new
BigDecimal(getAmount()), conn),
- C_Currency_ID, amount.negate().toString(), "", Fact_Acct_Group_ID,
nextSeqNo(SeqNo),
- DocumentType, conn);
+ + line.getGlitemAccount(as, amount, conn).C_ValidCombination_ID);
+ fact.createLine(line, line.getGlitemAccount(as, amount, conn),
C_Currency_ID, amount
+ .negate().toString(), "", Fact_Acct_Group_ID, nextSeqNo(SeqNo),
DocumentType, conn);
assetAmt = assetAmt.subtract(amount.negate());
} else if (CashType.equals(DocLine_Cash.CASHTYPE_DIFFERENCE)) {
// amount is pos/neg
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits