Attached Files | BankStatement.diff [^] (1,550 bytes) 2013-06-26 12:35 [Show Content] [Hide Content]--- src/org/openbravo/erpCommon/ad_forms/DocFINBankStatement.java 2012-10-07 11:47:20.000000000 +0200
+++ DocFINBankStatement.java 2013-06-26 12:25:59.000000000 +0200
@@ -125,15 +125,15 @@
}
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),
+ fact.createLine(null, getAccount(conn, bst.getAccount(), as, totalAmount.signum() > 0),
C_Currency_ID,
- (totalAmount.signum() > 0 ? totalAmount.abs().toString() : ZERO.toString()),
- (totalAmount.signum() < 0 ? totalAmount.abs().toString() : ZERO.toString()),
+ totalAmount.abs().toString(),
+ ZERO.toString(),
Fact_Acct_Group_ID, nextSeqNo(SeqNo), DocumentType, conn);
- fact.createLine(null, getAccount(conn, bst.getAccount(), as, totalAmount.signum() > 0),
+ fact.createLine(null, getAccount(conn, bst.getAccount(), as, totalAmount.signum() < 0),
C_Currency_ID,
- (totalAmount.signum() < 0 ? totalAmount.abs().toString() : ZERO.toString()),
- (totalAmount.signum() > 0 ? totalAmount.abs().toString() : ZERO.toString()),
+ ZERO.toString(),
+ totalAmount.abs().toString(),
Fact_Acct_Group_ID, nextSeqNo(SeqNo), DocumentType, conn);
} finally {
OBContext.restorePreviousMode();
@@ -249,4 +249,4 @@
return SeqNo;
}
-}
\ No newline at end of file
+}
|