details: https://code.openbravo.com/erp/devel/pi/rev/62ba0387a47d
changeset: 25727:62ba0387a47d
user: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
date: Wed Jan 07 18:55:41 2015 -0500
summary: Fixed bug 28325: Journal Entries Detail fails depending on the date
format.
When retrieving Fact Acct Group information in ReportGeneralLedgerJournalDetail
class in a direct command request, now is taken into account that the date
format defined could be dd/MM/yyyy, instead of default one dd-MM-yyyy, so the
called of split function getValue, was changed to separate the string parameter
by the position that realy marks the end of the date and the begins of the
Group Id.
Now the complete date is read no matter the format defined, and the Journal
Entries Detail form shows the information successfuly.
diffstat:
src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournalDetail.java |
6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 9e030967f74d -r 62ba0387a47d
src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournalDetail.java
---
a/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournalDetail.java
Mon Jan 19 17:01:01 2015 +0100
+++
b/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournalDetail.java
Wed Jan 07 18:55:41 2015 -0500
@@ -11,7 +11,7 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2001-2010 Openbravo SLU
+ * All portions are Copyright (C) 2001-2015 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************
@@ -51,8 +51,8 @@
} else if (vars.commandIn("DIRECT")) {
String strFactAcctGroupId = vars.getGlobalVariable("inpFactAcctGroupId",
"ReportGeneralLedgerJournalDetail|FactAcctGroupId");
- String strDateAcct = getValue(strFactAcctGroupId, 0);
- strFactAcctGroupId = getValue(strFactAcctGroupId, 1);
+ String strDateAcct = strFactAcctGroupId.substring(0,
strFactAcctGroupId.lastIndexOf("/"));
+ strFactAcctGroupId =
strFactAcctGroupId.substring(strFactAcctGroupId.lastIndexOf("/") + 1);
printPageDataSheet(response, vars, strFactAcctGroupId, strDateAcct,
null, "");
} else if (vars.commandIn("DP")) {
String strDPId = vars.getStringParameter("inpDPid");
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits