Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007032Openbravo ERP09. Financial managementpublic2009-01-20 17:522009-04-21 12:39
PavelPonomarev 
vmromanos 
normalminoralways
closedfixed 
10Vista x64
pi 
pi 
Core
No
0007032: Runnig "Balance sheet and P&L structure " report gets error.
When running the "Balance sheet and P&L structure" report, where the "Accounting Report" field is set to an "Accounting Report" without a "Grouping Category", the following error occurs:

Error:
java.lang.ArrayIndexOutOfBoundsException: -1

Please note that for 2.40 the reports are named differently.
General Account Report Setup <=> Balance sheet and P&L structure Setup
General Accounting Report <=> Balance sheet and P&L structure
1. Set role "Openbravo Admin"
2. Go to "Financial Management || Accounting || Analysis Tools || Balance sheet and P&L structure Setup || Setup"
3. Create new record "ex. 1111"
4. Go to "Financial Management || Accounting || Analysis Tools || Balance sheet and P&L structure Setup || Setup >> Grouping category" and verify that no record exists.
5. Go to "Financial Management || Accounting || Analysis Tools || Balance sheet and P&L structure || Balance sheet and P&L structure" fill in all necessary fields. Click "PDF Format".
6. Error occurs.

View screen shots.
The solution would be to show a message saying that no nodes found for the report, please review the configuration of the report. Something like that
No tags attached.
related to defect 0007437pi closed vmromanos PDF Reports should open on a new window 
jpg Error.jpg (34,001) 2009-01-20 17:52
https://issues.openbravo.com/file_download.php?file_id=681&type=bug
jpg

jpg BalanceSetup.jpg (113,670) 2009-01-20 17:54
https://issues.openbravo.com/file_download.php?file_id=682&type=bug
jpg
Issue History
2009-01-20 17:52PavelPonomarevNew Issue
2009-01-20 17:52PavelPonomarevAssigned To => rafaroda
2009-01-20 17:52PavelPonomarevsf_bug_id0 => 2524094
2009-01-20 17:52PavelPonomarevFile Added: Error.jpg
2009-01-20 17:52PavelPonomarevRegression testing => No
2009-01-20 17:54PavelPonomarevFile Added: BalanceSetup.jpg
2009-01-20 18:04PavelPonomarevDescription Updated
2009-01-21 06:14pjuvaraPrioritynormal => high
2009-01-21 06:14pjuvaraSeverityminor => major
2009-01-30 11:59psarobeNote Added: 0012882
2009-01-30 11:59psarobeAssigned Torafaroda => vmromanos
2009-01-30 11:59psarobePriorityhigh => normal
2009-01-30 11:59psarobeSeveritymajor => minor
2009-01-30 11:59psarobeStatusnew => scheduled
2009-01-30 11:59psarobeSteps to Reproduce Updated
2009-02-02 19:52svnbotCheckin
2009-02-02 19:52svnbotNote Added: 0013040
2009-02-02 19:52svnbotStatusscheduled => resolved
2009-02-02 19:52svnbotResolutionopen => fixed
2009-02-02 19:52svnbotsvn_revision => 12688
2009-02-23 19:12vmromanosRelationship addedrelated to 0007437
2009-04-21 12:39psarobeStatusresolved => closed

Notes
(0012882)
psarobe   
2009-01-30 11:59   
We have change the severity to minor because what you have done it's very strange and at the end, the configuration would be wrong.
(0013040)
svnbot   
2009-02-02 19:52   
Repository: openbravo
Revision: 12688
Author: vmromanos
Date: 2009-02-02 19:52:19 +0100 (Mon, 02 Feb 2009)

Fixed bug 7032: Running "Balance sheet and P&L structure " report gets error

---
U trunk/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.html
U trunk/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.java
U trunk/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.xml
U trunk/src-db/database/sourcedata/AD_MESSAGE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=12688&sc=1 [^]