details:   https://code.openbravo.com/erp/devel/pi/rev/1ec1a7c8ac33
changeset: 20253:1ec1a7c8ac33
user:      Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
date:      Thu May 02 11:52:17 2013 +0200
summary:   fixes bug 21664

diffstat:

 src/org/openbravo/erpCommon/ad_forms/DocFINBankStatement.java |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (19 lines):

diff -r eb2fcc35a947 -r 1ec1a7c8ac33 
src/org/openbravo/erpCommon/ad_forms/DocFINBankStatement.java
--- a/src/org/openbravo/erpCommon/ad_forms/DocFINBankStatement.java     Wed May 
01 12:53:04 2013 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/DocFINBankStatement.java     Thu May 
02 11:52:17 2013 +0200
@@ -125,13 +125,11 @@
       }
       String Fact_Acct_Group_ID = SequenceIdData.getUUID();
       FIN_BankStatement bst = OBDal.getInstance().get(FIN_BankStatement.class, 
Record_ID);
-      fact.createLine(null, getAccount(conn, bst.getAccount(), as, 
totalAmount.signum() < 0),
-          C_Currency_ID,
+      fact.createLine(null, getAccount(conn, bst.getAccount(), as, true), 
C_Currency_ID,
           (totalAmount.signum() > 0 ? totalAmount.abs().toString() : 
ZERO.toString()),
           (totalAmount.signum() < 0 ? totalAmount.abs().toString() : 
ZERO.toString()),
           Fact_Acct_Group_ID, nextSeqNo(SeqNo), DocumentType, conn);
-      fact.createLine(null, getAccount(conn, bst.getAccount(), as, 
totalAmount.signum() > 0),
-          C_Currency_ID,
+      fact.createLine(null, getAccount(conn, bst.getAccount(), as, false), 
C_Currency_ID,
           (totalAmount.signum() < 0 ? totalAmount.abs().toString() : 
ZERO.toString()),
           (totalAmount.signum() > 0 ? totalAmount.abs().toString() : 
ZERO.toString()),
           Fact_Acct_Group_ID, nextSeqNo(SeqNo), DocumentType, conn);

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to