Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023975Openbravo ERPA. Platformpublic2013-06-04 10:102013-06-20 02:07
AugustoMauch 
AugustoMauch 
urgentmajoralways
closedfixed 
5
 
3.0MP243.0MP24 
shankarb
Core
Coding ( Testing )
2013-05-16
https://code.openbravo.com/erp/devel/pi/rev/2e4eccaa3cc8fc8ac434cb0d386166558d1ee686 [^]
No
0023975: Number handling does not work properly if ',' is used as decimal separator
If ',' is used as decimal separator, numbers with decimal values lose them when they are focused and then the focus is moved to another field. It is not possible to enter new number with decimal digits, only the integer part remains.
As F&B Group Admin, using the format.xml attached to the issue:
- Open Sales Order
- Create a new header
- Start creating a new line
- Select a product and try to change its net unit price. See that you can not enter a number with decimal values
No tags attached.
blocks defect 00284273.0PR15Q2 closed AugustoMauch Price is not rounded to calculate the line net amount in Create Lines process of Purchase Order 
xml Format.xml (2,155) 2013-06-04 10:22
https://issues.openbravo.com/file_download.php?file_id=6170&type=bug
Issue History
2013-06-04 10:10AugustoMauchNew Issue
2013-06-04 10:10AugustoMauchAssigned To => AugustoMauch
2013-06-04 10:10AugustoMauchModules => Core
2013-06-04 10:10AugustoMauchTriggers an Emergency Pack => No
2013-06-04 10:12AugustoMauchRegression level => Coding ( Testing )
2013-06-04 10:12AugustoMauchRegression date => 2013-05-16
2013-06-04 10:12AugustoMauchRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/2e4eccaa3cc8fc8ac434cb0d386166558d1ee686 [^]
2013-06-04 10:15AugustoMauchIssue Monitored: shankarb
2013-06-04 10:15AugustoMauchReview Assigned To => shankarb
2013-06-04 10:21hgbotCheckin
2013-06-04 10:21hgbotNote Added: 0059144
2013-06-04 10:21hgbotStatusnew => resolved
2013-06-04 10:21hgbotResolutionopen => fixed
2013-06-04 10:21hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e13f1255ac95c3444919326fc896ffdebc66c1a3 [^]
2013-06-04 10:22AugustoMauchNote Added: 0059145
2013-06-04 10:22AugustoMauchStatusresolved => new
2013-06-04 10:22AugustoMauchResolutionfixed => open
2013-06-04 10:22AugustoMauchFile Added: Format.xml
2013-06-04 10:23AugustoMauchStatusnew => scheduled
2013-06-04 10:23AugustoMauchfix_in_branch => pi
2013-06-04 10:23AugustoMauchStatusscheduled => resolved
2013-06-04 10:23AugustoMauchResolutionopen => fixed
2013-06-04 11:37shankarbNote Added: 0059160
2013-06-04 11:37shankarbStatusresolved => new
2013-06-04 11:37shankarbResolutionfixed => open
2013-06-04 12:33hgbotCheckin
2013-06-04 12:33hgbotNote Added: 0059162
2013-06-04 12:33hgbotStatusnew => resolved
2013-06-04 12:33hgbotResolutionopen => fixed
2013-06-04 12:33hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/e13f1255ac95c3444919326fc896ffdebc66c1a3 [^] => http://code.openbravo.com/erp/devel/pi/rev/e9c65e2e6ae90ff7a09c7adf272327051772c875 [^]
2013-06-04 13:05shankarbNote Added: 0059164
2013-06-04 13:05shankarbStatusresolved => closed
2013-06-04 13:05shankarbFixed in Version => 3.0MP24
2013-06-20 02:07hudsonbotCheckin
2013-06-20 02:07hudsonbotNote Added: 0059536
2013-06-20 02:07hudsonbotCheckin
2013-06-20 02:07hudsonbotNote Added: 0059538
2015-01-23 14:49AugustoMauchRelationship addedblocks 0028427

Notes
(0059144)
hgbot   
2013-06-04 10:21   
Repository: erp/devel/pi
Changeset: e13f1255ac95c3444919326fc896ffdebc66c1a3
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Jun 04 10:20:19 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e13f1255ac95c3444919326fc896ffdebc66c1a3 [^]

Fixes issue 23975: Number handling works using ',' as decimal separator

In the fix of the issue 23758 [1] it was wrongly assumed that the function getValue() of a OBNumberItem was going to return a javascript number. When the an existing record has just been opened getValue() will return a number, but when the user edits it, it will return the string representation of the number using the format specified by the user.

Now this has been taken into account, so the value is treated differently if getValue returns a string or a javascript number.

[1] https://code.openbravo.com/erp/devel/pi/rev/2e4eccaa3cc8fc8ac434cb0d386166558d1ee686 [^]

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
---
(0059145)
AugustoMauch   
2013-06-04 10:22   
Reopened to attach format.xml file
(0059160)
shankarb   
2013-06-04 11:37   
When focus is lost from the numeric field and then focus is gained, a part of the value is lost using the provided Format.xml. In order line, Net unit price, I gave the value 123,45 and tabbed out. Then the value becomes 123,45000 . But after I move back focus to Net Unit Price Field and move focus again, it becomes 23,45000, the first value is lost.
(0059162)
hgbot   
2013-06-04 12:33   
Repository: erp/devel/pi
Changeset: e9c65e2e6ae90ff7a09c7adf272327051772c875
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Jun 04 12:33:00 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e9c65e2e6ae90ff7a09c7adf272327051772c875 [^]

Fixes issue 23975: Changes are only done when getValue() returns a string

The numeric handling only needed to be done when getValue() returns a string, that is, when the user has entered a new value or modified the existing one. The textualValue needed to be set also.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
---
(0059164)
shankarb   
2013-06-04 13:05   
Code reviewed and tested in pi changeset e9c65e2e6ae9.
(0059536)
hudsonbot   
2013-06-20 02:07   
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/5caf871044ad [^]

Maturity status: Test
(0059538)
hudsonbot   
2013-06-20 02:07   
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/5caf871044ad [^]

Maturity status: Test