details: https://code.openbravo.com/erp/devel/pi/rev/40bc1905d008
changeset: 14084:40bc1905d008
user: Mikel Irurita <mikel.irurita <at> openbravo.com>
date: Tue Oct 25 12:54:19 2011 +0200
summary: Fixes issue 18852: Error when posting Transaction with several
glitems configured for different accounts
diffstat:
src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 91a9ede68a28 -r 40bc1905d008
src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java
--- a/src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java Tue Oct
25 11:58:14 2011 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java Tue Oct
25 12:54:19 2011 +0200
@@ -424,8 +424,9 @@
fact.createLine(
line,
getAccountGLItem(OBDal.getInstance().get(GLItem.class,
line.getCGlItemId()), as,
- isReceipt, conn), paymentCurrency.getId(),
line.getPaymentAmount(), line
- .getDepositAmount(), Fact_Acct_Group_ID, nextSeqNo(SeqNo),
DocumentType, conn);
+ isReceipt, conn), paymentCurrency.getId(), isReceipt ? "" :
line.getAmount(),
+ isReceipt ? line.getAmount() : "", Fact_Acct_Group_ID,
nextSeqNo(SeqNo),
+ DocumentType, conn);
} else {
BigDecimal bpAmountConverted = bpamount;
Invoice invoice = line.getInvoice();
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits