Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018024Openbravo ERP09. Financial managementpublic2011-07-18 17:292011-07-27 12:28
mirurita 
mirurita 
highmajoralways
closedfixed 
5
 
 
Core
No
0018024: Not possible to enter a G/L Journal line using comma as decimal separator
It is not possible to create a new G/L Journal Line using comma as decimal separator. (see attached screenshot)

The following callout is preventing the tab to be loaded properly:
SL_JournalLineAmt

Caused by: java.lang.NumberFormatException
    at java.math.BigDecimal.<init>(BigDecimal.java:470)
    at java.math.BigDecimal.<init>(BigDecimal.java:739)
    at org.openbravo.erpCommon.ad_callouts.SL_JournalLineAmt.printPage(SL_JournalLineAmt.java:98)
    at org.openbravo.erpCommon.ad_callouts.SL_JournalLineAmt.doPost(SL_JournalLineAmt.java:65)
1) Configure comma as decimal separator.
2) Create a new G/L Journal Batch
3) Create a new G/L Journal Header
4) Try to create a new G/L Journal Line
Use getNumericParameter instead of getStringParameter

Line 55
String strCurrencyRate = vars.getStringParameter("inpcurrencyrate", "1");
No tags attached.
blocks defect 0018023 closed mirurita Not possible to enter a G/L Journal line using comma as decimal separator 
Issue History
2011-07-18 18:36miruritaTypedefect => backport
2011-07-18 18:36miruritafix_in_branch => 2.50
2011-07-18 18:40hgbotCheckin
2011-07-18 18:40hgbotNote Added: 0039193
2011-07-18 18:40hgbotStatusscheduled => resolved
2011-07-18 18:40hgbotResolutionopen => fixed
2011-07-18 18:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/e9d5e89d8e27de0728e611f2ed8a84cc584c69f3 [^]
2011-07-27 12:28psanjuanNote Added: 0039439
2011-07-27 12:28psanjuanStatusresolved => closed

Notes
(0039193)
hgbot   
2011-07-18 18:40   
Repository: erp/stable/2.50
Changeset: e9d5e89d8e27de0728e611f2ed8a84cc584c69f3
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Mon Jul 18 18:39:55 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/e9d5e89d8e27de0728e611f2ed8a84cc584c69f3 [^]

Fixes issue 18024: Not possible to enter a G/L Journal line using comma as decimal separator

---
M src/org/openbravo/erpCommon/ad_callouts/SL_JournalLineAmt.java
---
(0039439)
psanjuan   
2011-07-27 12:28   
fixed and working