Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033900
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2016-09-05 17:232016-09-23 08:14
ReporterngarciaView Statuspublic 
Assigned Tocaristu 
PriorityurgentResolutionfixedFixed in Version3.0PR16Q4
StatusclosedFix in branchFixed in SCM revision89eaadd3beda
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033900: Wrong decimal default value if decimal and grouping separators are modified in Format.xml file

DescriptionWrong decimal default value if decimal and grouping separators are modified in Format.xml file.

The problem is in the createFromClassicString function of NumberUIDefinition java class
Steps To Reproduce1. Modify in Format.xml the decimal and grouping separators:

http://wiki.openbravo.com/wiki/Projects/Allow_comma_separator/Technical_Documentation#Java_level [^]

2. Check through database the default value for Fin_Payment.Finacc_Txn_Convert_Rate column is 1.0

select defaultvalue
from ad_column
where ad_column_id = '4028C9BC2DA5C491012DA6832A1003A8'

3. As system admin role:
Deactivate the following callouts (in order the column value not to be modified):

SE_Payment_FinAccount
SE_Payment_MultiCurrency

4. As group admin role:
Create a new Payment Out
Check the Exchange Rate column has the value of 10 (you should show it in grid mode as it is not displayed)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0027698 acknowledgedTriage Platform Base Wrong calculations on numeric field depending on the formula when using a comma as decimal separator 
related to defect 0028765 acknowledgedTriage Platform Base It is not possible to use formula inputs if ',' is used as decimal separator 

-  Notes
(0089796)
hgbot (developer)
2016-09-07 09:24

Repository: erp/devel/pi
Changeset: 89eaadd3bedae46e49b2a0acadcdde5563919769
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Sep 07 09:23:12 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/89eaadd3bedae46e49b2a0acadcdde5563919769 [^]

fixes issue 33900: Wrong decimal default value having ',' as decimal separator

When using a decimal value as default for a numeric column, this very same value is a String passed to the createFromClassicString of NumberUIDefinition which is used by the FIC to retrieve the column value. The default values are part of the code, so in case of decimal values, they must me defined as a valid Java decimal number. But the createFromClassicString expects a value formatted according to the Format.xml file.

For this reason, now the decimal default values are formatted properly. Although this value will be converted again in the createFromClassicString, this is the cleanest solution because for the rest of the flows within the FIC, the createFromClassicString method receives a value formatted according to the to the Format.xml file.

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java
---
(0089805)
hudsonbot (developer)
2016-09-07 14:20

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/f6f6845fdec4 [^]
Maturity status: Test
(0089863)
hgbot (developer)
2016-09-09 09:28

Repository: erp/devel/pi
Changeset: 012a4636f8b199ac41ef9866484c9abcc8fe5f5c
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Sep 09 09:27:47 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/012a4636f8b199ac41ef9866484c9abcc8fe5f5c [^]

related to bug 33900: added contextual information in case of exception

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
---
(0089864)
alostale (manager)
2016-09-09 10:00

reopening

Tested cases:

1. As defined in steps to reproduce: default set as a literal -> OK
2. Decimal default obtained from an SQL -> FAILS

Steps to reproduce case 2:

1. Edit FIN_Payment.Finacc_Txn_Convert_Rate default value to: @SQL=select 1.5 from dual
2. Create a Payment Out. Exepected value in conversion rate is 1.5
  - Having dot as decimal separator -> OK
  - Having comma as decimal separator got 15 as value -> ERROR


https://docs.google.com/spreadsheets/d/18l2biKWeG6iGDIPqO6VuYQ_TtP_6YxyQU4KSrPvQlJ8/edit#gid=0 [^]
(0089870)
hudsonbot (developer)
2016-09-09 14:40

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/a0e1673dab60 [^]
Maturity status: Test
(0089871)
hgbot (developer)
2016-09-09 15:19

Repository: erp/devel/pi
Changeset: 093cf42d6fa6ee0229ecc70884b565ba6f430d68
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Sep 09 15:18:08 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/093cf42d6fa6ee0229ecc70884b565ba6f430d68 [^]

related to issue 33900: apply the format when default value is a SQL expression

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java
---
(0089872)
hgbot (developer)
2016-09-09 15:21

Repository: erp/devel/pi
Changeset: 7d535f62209815695ca9a9db96423cb871a85060
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Sep 09 15:21:17 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7d535f62209815695ca9a9db96423cb871a85060 [^]

related to issue 33900: fix typo in comment

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java
---
(0089879)
hudsonbot (developer)
2016-09-09 20:14

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/b21f9cb9c127 [^]
Maturity status: Test
(0089880)
hudsonbot (developer)
2016-09-09 20:14

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/b21f9cb9c127 [^]
Maturity status: Test
(0090178)
alostale (manager)
2016-09-23 08:14

code reviewed

Tested cases:

1. As defined in steps to reproduce: default set as a literal -> OK
2. Decimal default obtained from an SQL -> OK

- Issue History
Date Modified Username Field Change
2016-09-05 17:23 ngarcia New Issue
2016-09-05 17:23 ngarcia Assigned To => platform
2016-09-05 17:23 ngarcia Modules => Core
2016-09-05 17:23 ngarcia Resolution time => 1474840800
2016-09-05 17:23 ngarcia Triggers an Emergency Pack => No
2016-09-05 17:24 ngarcia Issue Monitored: networkb
2016-09-05 17:25 ngarcia Description Updated View Revisions
2016-09-06 12:01 caristu Status new => scheduled
2016-09-06 12:01 caristu Assigned To platform => caristu
2016-09-07 09:24 hgbot Checkin
2016-09-07 09:24 hgbot Note Added: 0089796
2016-09-07 09:24 hgbot Status scheduled => resolved
2016-09-07 09:24 hgbot Resolution open => fixed
2016-09-07 09:24 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/89eaadd3bedae46e49b2a0acadcdde5563919769 [^]
2016-09-07 09:25 caristu Review Assigned To => alostale
2016-09-07 09:25 caristu Issue Monitored: alostale
2016-09-07 14:20 hudsonbot Checkin
2016-09-07 14:20 hudsonbot Note Added: 0089805
2016-09-09 09:28 hgbot Checkin
2016-09-09 09:28 hgbot Note Added: 0089863
2016-09-09 10:00 alostale Note Added: 0089864
2016-09-09 10:00 alostale Status resolved => new
2016-09-09 10:00 alostale Resolution fixed => open
2016-09-09 14:40 hudsonbot Checkin
2016-09-09 14:40 hudsonbot Note Added: 0089870
2016-09-09 15:19 hgbot Checkin
2016-09-09 15:19 hgbot Note Added: 0089871
2016-09-09 15:21 hgbot Checkin
2016-09-09 15:21 hgbot Note Added: 0089872
2016-09-09 15:22 caristu Status new => scheduled
2016-09-09 15:22 caristu Status scheduled => resolved
2016-09-09 15:22 caristu Resolution open => fixed
2016-09-09 20:14 hudsonbot Checkin
2016-09-09 20:14 hudsonbot Note Added: 0089879
2016-09-09 20:14 hudsonbot Checkin
2016-09-09 20:14 hudsonbot Note Added: 0089880
2016-09-23 08:14 alostale Note Added: 0090178
2016-09-23 08:14 alostale Status resolved => closed
2016-09-23 08:14 alostale Fixed in Version => 3.0PR16Q4
2016-12-14 17:13 alostale Relationship added related to 0027698
2016-12-15 09:22 caristu Relationship added related to 0028765


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker