Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0020148 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] 09. Financial management | minor | always | 2012-03-29 11:30 | 2012-04-02 06:13 | |||
| Reporter | mirurita | View Status | public | |||||
| Assigned To | mirurita | |||||||
| Priority | high | Resolution | fixed | Fixed in Version | 3.0MP10 | |||
| Status | closed | Fix in branch | Fixed in SCM revision | 944195714367 | ||||
| Projection | none | ETA | none | Target Version | ||||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | pi | SCM revision | ||||||
| Merge Request Status | ||||||||
| Review Assigned To | ||||||||
| OBNetwork customer | No | |||||||
| Web browser | ||||||||
| Modules | Core | |||||||
| Support ticket | ||||||||
| Regression level | ||||||||
| Regression date | ||||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | ||||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0020148: java.lang.NumberFormatException in General Ledger Journal pdf output using comma as decimal separator in initial balance filter | |||||||
| Description | Use comma as decimal separator. If the Initial Balance filter in general ledger journal contains a comma if you run the pdf report it will fail: java.lang.NumberFormatException it is trying to convert a number with commas as decimal separator to BigDecimal. | |||||||
| Steps To Reproduce | 1) Comma must be configured as decimal separator. 2) Go to General Ledger Journal 3) By default Initial Balance filter contains 0 as value 4) Enter any value and the input will be formatted to euroEdition containing comma as decimal separator 5) Click on the printer icon on the toolbar. | |||||||
| Proposed Solution | use vars.getNumeric... methods for getting the value of this filter instead of String strInitialBalance = vars.getGlobalVariable("inpInitialBalance", "ReportGeneralLedgerJournal|InitialBalance", "0"); use String strInitialBalance = vars.getNumericGlobalVariable("inpInitialBalance", "ReportGeneralLedgerJournal|InitialBalance", "0"); | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|
Notes |
|
|
(0046910) hgbot (developer) 2012-03-29 17:03 |
Repository: erp/devel/pi Changeset: 944195714367a88173715611a25a9a04550ff88d Author: Mikel Irurita <mikel.irurita <at> openbravo.com> Date: Thu Mar 29 16:55:28 2012 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/944195714367a88173715611a25a9a04550ff88d [^] Fixes issue 20148: General Ledger report NumberFormatException using commas as decimal separator If the initial balance amount contains a comma when printing in pdf format it will fail: java.lang.NumberFormatException, because it's trying to cast to BigDecimal an number string containing a commas as decimal separator --- M src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.java M src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.xml --- |
|
(0046920) mirurita (viewer) 2012-03-29 17:10 |
Testing Plan 1.- Set commas as decimal separator in Format.xml 2.- Go to General Ledger Journal report 3.- Enter as initial balance: 10,57 4.- Click on Print record icon in the toolbar 5.- The pdf file should be printed and the initial balance amount displayed. 6.- Click on Export to Excel icon in the toolbar 7.- The excel file should be printed and the initial balance amount displayed. 8.- Click on HTML format button 9.- In HTML format this initial balance information is not used but the result should be displayed. 10.- Close the tab and return again. The initial balance field should display: 10,57 Alternative Testing Plan 1.- Repeat previous steps using dot as decimal separator |
|
(0046972) vmromanos (viewer) 2012-03-30 12:55 |
code review + testing OK. Tested using '.' and ',' as decimal separator (qtyEdition and euroEdition) |
|
(0047272) hudsonbot (viewer) 2012-04-02 06:13 |
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/7814864461ac [^] Maturity status: Test |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-03-29 11:30 | mirurita | New Issue | |
| 2012-03-29 11:30 | mirurita | Assigned To | => vmromanos |
| 2012-03-29 11:30 | mirurita | File Added: GeneralLedgerReport.png | |
| 2012-03-29 11:30 | mirurita | Modules | => Core |
| 2012-03-29 11:30 | mirurita | OBNetwork customer | => No |
| 2012-03-29 17:01 | mirurita | Assigned To | vmromanos => mirurita |
| 2012-03-29 17:03 | hgbot | Checkin | |
| 2012-03-29 17:03 | hgbot | Note Added: 0046910 | |
| 2012-03-29 17:03 | hgbot | Status | new => resolved |
| 2012-03-29 17:03 | hgbot | Resolution | open => fixed |
| 2012-03-29 17:03 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/944195714367a88173715611a25a9a04550ff88d [^] |
| 2012-03-29 17:10 | mirurita | Note Added: 0046920 | |
| 2012-03-30 12:55 | vmromanos | Note Added: 0046972 | |
| 2012-03-30 12:55 | vmromanos | Status | resolved => closed |
| 2012-03-30 12:55 | vmromanos | Fixed in Version | => 3.0MP10 |
| 2012-04-02 06:13 | hudsonbot | Checkin | |
| 2012-04-02 06:13 | hudsonbot | Note Added: 0047272 | |
| Copyright © 2000 - 2009 MantisBT Group |