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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030113
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] A. Platformcriticalalways2015-06-02 09:292015-06-15 10:08
ReportervmromanosView Statuspublic 
Assigned Tocaristu 
PriorityimmediateResolutionfixedFixed in Version3.0PR15Q2.2
StatusclosedFix in branchFixed in SCM revision92288ee33eeb
ProjectionnoneETAnoneTarget Version3.0PR15Q2.2
OSAnyDatabasePostgreSQLJava version
OS VersionDatabase version9.3Ant 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

0030113: Critical bug with decimals only in PostgreSQL 9.3

DescriptionIt seems that the way decimal numbers are managed by PostgreSQL 9.3 is different from PostgreSQL 9.1, and may create important issues in several flows.

The same query [select to_number('1.53')] returns different results depending on the PG version:

PG 9.1: 1.53
PG 9.3: 153
Steps To ReproduceLogin as Openbravo admin

Go to Sales Order and create a new record:
  Org: España Norte
  BP: Alimentos y Supermercados
  Invoice Terms: Immediate
Go to Lines and create a new record:
  Quantity: 10
  Product: Agua sin gas
 Verify unit price = 1.53
Book the sales order

Go to Sales Invoice and create a new record:
  Org: España Norte
  BP: Alimentos y SuperMercados
Press Create Lines From:
  In the sales order select the previously created
  In the grid select the 2 order lines
  Press OK
Go to lines and check that:
  the unit price is 153, when it should be 1.53
  the line net amount is 1530, when it should be 15.30
TagsApproved
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0030069 closedcaristu Critical bug with decimals only in PostgreSQL 9.3 

-  Notes
(0078191)
hgbot (developer)
2015-06-10 17:18

Repository: erp/backports/3.0PR15Q2.2
Changeset: 92288ee33eeb3b501dd18e65fb77a557fb283ac9
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Jun 10 17:14:48 2015 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR15Q2.2/rev/92288ee33eeb3b501dd18e65fb77a557fb283ac9 [^]

Fixes issue 30113: Critical bug with decimals only in PostgreSQL 9.3

A new build validation has been added. This way, when executing update.database the result returned by the to_number() procedure is evaluated.
In case it does not return the expected result, the task will fail, showing a message with the link to the documentation.

---
A src-util/buildvalidation/build/classes/org/openbravo/buildvalidation/DatabaseDecimalNumberCheck.class
A src-util/buildvalidation/build/classes/org/openbravo/buildvalidation/DatabaseDecimalNumberCheckData.class
A src-util/buildvalidation/src/org/openbravo/buildvalidation/DatabaseDecimalNumberCheck.java
A src-util/buildvalidation/src/org/openbravo/buildvalidation/DatabaseDecimalNumberCheck_data.xsql
---
(0078283)
alostale (manager)
2015-06-15 10:08

code reviewed + tested with PG 9.3 lc_numeric 'es_ES'

- Issue History
Date Modified Username Field Change
2015-06-05 11:43 alostale Type defect => backport
2015-06-05 11:43 alostale Target Version => 3.0PR15Q2.2
2015-06-10 09:25 dmitry_mezentsev Tag Attached: Approved
2015-06-10 17:17 caristu Issue Monitored: alostale
2015-06-10 17:18 hgbot Checkin
2015-06-10 17:18 hgbot Note Added: 0078191
2015-06-10 17:18 hgbot Status scheduled => resolved
2015-06-10 17:18 hgbot Resolution open => fixed
2015-06-10 17:18 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q2.2/rev/92288ee33eeb3b501dd18e65fb77a557fb283ac9 [^]
2015-06-15 10:08 alostale Note Added: 0078283
2015-06-15 10:08 alostale Status resolved => closed
2015-06-15 10:08 alostale Fixed in Version => 3.0PR15Q2.2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker