Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028325Openbravo ERP09. Financial managementpublic2014-12-01 09:302015-02-04 20:34
caristu 
reinaldoguerra 
urgentmajoralways
closedfixed 
5
pi 
3.0PR15Q2pi 
umartirena
Core
No
0028325: Navigation to Journal Entries Report Detail does not work properly depending on the date format
If we configure the environment to use the following date format: dd/MM/yyyy, then when navigation to the Journal Entries Report Detail the screen appears in blank without showing any information.
1) Configure the java date format

  1a) Configure Openbravo.properties file to use the following date format: dateFormat.java=dd/MM/yyyy

  1b) Rebuild the application. Restart tomcat

2) Execute the Journal Entries Report

3) Click on the "Detail" link in any of the resulting records. Notice that the Journal Entries Report Detail appears in blank.
In the ReportGeneralLedgerJournalDetail, the getValue() function is splitting the string with the parameters by the "/" character. This does not retrieve the date properly if we work with a date format like dd/MM/yyyy

The date format should be taken into account in this method in order to retrieve the date acct properly.
No tags attached.
png JEDetailBlank.png (18,666) 2014-12-01 09:36
https://issues.openbravo.com/file_download.php?file_id=7563&type=bug
png
Issue History
2014-12-01 09:30caristuNew Issue
2014-12-01 09:30caristuAssigned To => dmiguelez
2014-12-01 09:30caristuModules => Core
2014-12-01 09:30caristuResolution time => 1419980400
2014-12-01 09:30caristuTriggers an Emergency Pack => No
2014-12-01 09:31caristuIssue Monitored: networkb
2014-12-01 09:31caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7184#r7184
2014-12-01 09:31caristuDescription Updatedbug_revision_view_page.php?rev_id=7186#r7186
2014-12-01 09:34caristuFile Added: JEDetailBlank.png
2014-12-01 09:35caristuFile Deleted: JEDetailBlank.png
2014-12-01 09:36caristuFile Added: JEDetailBlank.png
2014-12-01 09:36caristuAssigned Todmiguelez => AtulOpenbravo
2014-12-01 10:10heccamIssue Monitored: heccam
2014-12-01 13:41egoitzTarget Version3.0PR15Q1 => 3.0PR15Q2
2014-12-11 12:24caristuSummaryJournal Entries Report Detail does not work properly depending on the date format => Navigation to Journal Entries Report Detail does not work properly depending on the date format
2015-01-07 01:01reinaldoguerraAssigned ToAtulOpenbravo => reinaldoguerra
2015-01-07 01:01reinaldoguerraStatusnew => scheduled
2015-01-08 19:21reinaldoguerraNote Added: 0073382
2015-01-19 17:37hgbotCheckin
2015-01-19 17:37hgbotNote Added: 0073615
2015-01-19 17:37hgbotStatusscheduled => resolved
2015-01-19 17:37hgbotResolutionopen => fixed
2015-01-19 17:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/62ba0387a47d84df33df773dc38b045781d9edd8 [^]
2015-01-19 17:38umartirenaReview Assigned To => umartirena
2015-01-19 17:38umartirenaNote Added: 0073616
2015-01-19 17:38umartirenaStatusresolved => closed
2015-01-19 17:38umartirenaFixed in Version => pi
2015-02-04 20:34hudsonbotCheckin
2015-02-04 20:34hudsonbotNote Added: 0074160

Notes
(0073382)
reinaldoguerra   
2015-01-08 19:21   
Test plan used:
1- Configure the java date format
  1a) Configure Openbravo.properties file to use the following date format: dateFormat.java=dd/MM/yyyy
  1b) Rebuild the application. Restart tomcat
2- Execute the Journal Entries Report
3- Click on the "Detail" link in any of the resulting records. Notice that the Journal Entries Report Detail appears successfuly.
(0073615)
hgbot   
2015-01-19 17:37   
Repository: erp/devel/pi
Changeset: 62ba0387a47d84df33df773dc38b045781d9edd8
Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
Date: Wed Jan 07 18:55:41 2015 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/62ba0387a47d84df33df773dc38b045781d9edd8 [^]

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.

---
M src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournalDetail.java
---
(0073616)
umartirena   
2015-01-19 17:38   
Code Review + Testing OK
(0074160)
hudsonbot   
2015-02-04 20:34   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/f36c91d0ad63 [^]
Maturity status: Test