details: https://code.openbravo.com/erp/devel/pi/rev/bf012d0fa4b1 changeset: 26222:bf012d0fa4b1 user: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> date: Tue Mar 17 13:03:33 2015 +0100 summary: Fixes issue 29315: Wrong accounts when posting multi-general ledger G/L Journal
When getting accounts from GL Item (while posting a Simple G/L Journal setted as multi-general ledger), they were setted wrongly to accounting lines details: https://code.openbravo.com/erp/devel/pi/rev/e4c0edce1bc9 changeset: 26223:e4c0edce1bc9 user: Unai Martirena <unai.martirena <at> openbravo.com> date: Mon Mar 23 17:22:40 2015 +0100 summary: Related to bug 29315: Add copyright header diffstat: src/org/openbravo/erpCommon/ad_forms/DocLine_GLJournal.java | 22 +++++++++++- 1 files changed, 20 insertions(+), 2 deletions(-) diffs (39 lines): diff -r 3da15b275c37 -r e4c0edce1bc9 src/org/openbravo/erpCommon/ad_forms/DocLine_GLJournal.java --- a/src/org/openbravo/erpCommon/ad_forms/DocLine_GLJournal.java Mon Mar 23 17:14:45 2015 +0100 +++ b/src/org/openbravo/erpCommon/ad_forms/DocLine_GLJournal.java Mon Mar 23 17:22:40 2015 +0100 @@ -1,3 +1,21 @@ +/* + ************************************************************************* + * The contents of this file are subject to the Openbravo Public License + * Version 1.0 (the "License"), being the Mozilla Public License + * Version 1.1 with a permitted attribution clause; you may not use this + * file except in compliance with the License. You may obtain a copy of + * the License at http://www.openbravo.com/legal/license.html + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the + * License for the specific language governing rights and limitations + * under the License. + * The Original Code is Openbravo ERP. + * The Initial Developer of the Original Code is Openbravo SLU + * All portions are Copyright (C) 2014-2015 Openbravo SLU + * All Rights Reserved. + * Contributor(s): ______________________________________. + ************************************************************************* + */ package org.openbravo.erpCommon.ad_forms; import javax.servlet.ServletException; @@ -35,11 +53,11 @@ switch (Integer.parseInt(AcctType)) { case 1: // It is similar to ProductInfo.ACCTTYPE_P_Revenue - Account_ID = data[0].glitemCreditAcct; + Account_ID = data[0].glitemDebitAcct; break; case 2: // It is similar to ProductInfo.ACCTTYPE_P_Expense - Account_ID = data[0].glitemDebitAcct; + Account_ID = data[0].glitemCreditAcct; break; } } ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Openbravo-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbravo-commits
