Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0030113 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | critical | always | 2015-06-02 09:29 | 2015-06-15 10:08 | |||
Reporter | vmromanos | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR15Q2.2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 92288ee33eeb | ||||
Projection | none | ETA | none | Target Version | 3.0PR15Q2.2 | |||
OS | Any | Database | PostgreSQL | Java version | ||||
OS Version | Database version | 9.3 | Ant version | |||||
Product Version | SCM revision | |||||||
Review Assigned To | alostale | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0030113: Critical bug with decimals only in PostgreSQL 9.3 | |||||||
Description | It 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 Reproduce | Login 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 | |||||||
Tags | Approved | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
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 |