Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0008098 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] A. Platform | major | always | 2009-03-12 16:35 | 2009-04-22 00:01 | |||
| Reporter | shuehner | View Status | public | |||||
| Assigned To | shuehner | |||||||
| Priority | high | Resolution | fixed | Fixed in Version | 2.50 | |||
| Status | closed | Fix in branch | pi | Fixed in SCM revision | 2f1991b64f1a | |||
| 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 | 0008098: Double representation should not be used for numbers as it is inprecise | |||||||
| Description | Double's are still used as intermediate representation in two places. Depending on values and configured precision this leads to wrong numbers displayed to the user. XmlEngine/DataGrid (still) use Double when formatting according to formats defined in Format.xml | |||||||
| Steps To Reproduce | - Go to MRP -> Manufacturing plan - Enter a header - Enter a single line - Execute the following sql in the underlying database (just to shortcut the process of entering this value): update mrp_run_productionline set qty = '0.77777777777777777777777777'; - Last step changes the quantity of all Manufacturingplan lines to this value. - edit config/Format.xml change the formatOutput value for "qtyRelation" to "#,##0.###############################" - display the manufacturing plan line again and so that not the correct value (as entered in the update step) is displayed but a different one. - The correct value should be displayed as the configured Format.xml entry has more digits as the example quantity value. | |||||||
| Proposed Solution | Fix XmlEngine & DataGrid to not use double as intermediate format when formatting numbers. | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
||||||||||||||||||||||
|
||||||||||||||||||||||
Notes |
|
|
(0014617) shuehner (administrator) 2009-03-12 16:39 |
I did not verify but this bug is probably present backwards other version too (2.40,2.35,...) |
|
(0014618) shuehner (administrator) 2009-03-12 16:45 |
Attached file with screenshot for the described case. |
|
(0014784) hgbot (developer) 2009-03-18 13:50 |
Repository: erp/devel/pi Changeset: 2f1991b64f1adae427c6863f6accafe5a86a367b Author: Stefan Hühner <stefan.huehner <at> openbravo.com> Date: Wed Mar 18 13:43:55 2009 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/2f1991b64f1adae427c6863f6accafe5a86a367b [^] Fixed 8098: changed outputformatting in edit & grid view to not use double as intermediate representation Use BigDecimal instead to avoid floating point problems --- M src-core/src/org/openbravo/xmlEngine/FieldValue.java M src/org/openbravo/erpCommon/utility/DataGrid.java --- |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2009-03-12 16:35 | shuehner | New Issue | |
| 2009-03-12 16:35 | shuehner | Assigned To | => rafaroda |
| 2009-03-12 16:35 | shuehner | OBNetwork customer | => No |
| 2009-03-12 16:35 | shuehner | Regression testing | => No |
| 2009-03-12 16:35 | shuehner | Relationship added | related to 0004512 |
| 2009-03-12 16:39 | shuehner | Note Added: 0014617 | |
| 2009-03-12 16:45 | shuehner | File Added: issue-8098.png | |
| 2009-03-12 16:45 | shuehner | Note Added: 0014618 | |
| 2009-03-16 11:39 | rafaroda | Assigned To | rafaroda => shuehner |
| 2009-03-16 11:39 | rafaroda | Priority | normal => high |
| 2009-03-16 11:39 | rafaroda | Status | new => scheduled |
| 2009-03-16 11:39 | rafaroda | fix_in_branch | => pi |
| 2009-03-17 19:06 | shuehner | Relationship added | related to 0008177 |
| 2009-03-18 13:50 | hgbot | Checkin | |
| 2009-03-18 13:50 | hgbot | Note Added: 0014784 | |
| 2009-03-18 13:50 | hgbot | Status | scheduled => resolved |
| 2009-03-18 13:50 | hgbot | Resolution | open => fixed |
| 2009-03-18 13:50 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/2f1991b64f1adae427c6863f6accafe5a86a367b [^] |
| 2009-04-21 10:33 | psarobe | Status | resolved => closed |
| 2009-04-22 00:01 | anonymous | sf_bug_id | 0 => 2778073 |
| Copyright © 2000 - 2009 MantisBT Group |