Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025710Openbravo ERPA. Platformpublic2014-02-12 10:542014-02-13 07:16
jonalegriaesarte 
AugustoMauch 
immediateminorhave not tried
closedfixed 
5
pi 
3.0PR14Q23.0PR14Q2 
shankarb
Core
No
0025710: Big numbers are not properly managed in amount fields
Big numbers are not properly managed in amount fields. If the user adds the amount 10,123,494,348.67 the sytem is managing it as 10.12
- G/L Journal window
- Create a Batch
- Create a Header
- New line. Add the amount 10,123,494,348.67 in debit field, the amount stored is 10.12
No tags attached.
has duplicate defect 0025949 closed dmiguelez Amount is not properly displayed in windows Payment In and out 
related to defect 00285523.0PR15Q2 closed alostale Purchase Invoice amount gets truncated upon saving, when the amount is big 
related to defect 0029709 closed NaroaIriarte Cannot save a physical inventory line with a negative small number in the Book Quantity field 
related to defect 0030014 closed NaroaIriarte The function OB.Utilities.Number.OBMaskedToOBPlain is not working properly with negative big numbers 
Issue History
2014-02-12 10:54jonalegriaesarteNew Issue
2014-02-12 10:54jonalegriaesarteAssigned To => AugustoMauch
2014-02-12 10:54jonalegriaesarteModules => Core
2014-02-12 10:54jonalegriaesarteTriggers an Emergency Pack => No
2014-02-12 10:55jonalegriaesarteNote Added: 0064075
2014-02-12 18:39AugustoMauchIssue Monitored: shankarb
2014-02-12 18:40AugustoMauchReview Assigned To => shankarb
2014-02-12 18:44hgbotCheckin
2014-02-12 18:44hgbotNote Added: 0064187
2014-02-12 18:44hgbotStatusnew => resolved
2014-02-12 18:44hgbotResolutionopen => fixed
2014-02-12 18:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9d50bf45a6c90939c02d59d24caba57bd769c216 [^]
2014-02-12 18:44AugustoMauchNote Added: 0064188
2014-02-13 05:33shankarbNote Added: 0064198
2014-02-13 05:33shankarbStatusresolved => closed
2014-02-13 05:33shankarbFixed in Version => 3.0MP32
2014-02-13 07:16hudsonbotCheckin
2014-02-13 07:16hudsonbotNote Added: 0064206
2014-03-13 11:04egoitzRelationship addedhas duplicate 0025949
2015-01-09 14:12alostaleRelationship addedrelated to 0028552
2015-05-26 09:32NaroaIriarteRelationship addedrelated to 0029709
2015-05-26 13:19NaroaIriarteRelationship addedrelated to 0030014

Notes
(0064075)
jonalegriaesarte   
2014-02-12 10:55   
The same is happening when using small numbers 0.0000001
In this case, you can change the price precision to 7 and store this number in one order line for example. The system is not managing it correctly
(0064187)
hgbot   
2014-02-12 18:44   
Repository: erp/devel/pi
Changeset: 9d50bf45a6c90939c02d59d24caba57bd769c216
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Feb 12 18:42:08 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9d50bf45a6c90939c02d59d24caba57bd769c216 [^]

Fixes issue 25710: Big numbers are not properly managed in amount fields

The problem was that the OB.Utilities.Number.OBMaskedToOBPlain function was removing the '0's after the decimal dot even if the number was being expressed in decimal notation. This way, '1.12E10' was being converted to '1.12E1'.

This has been fixed by not removing the lasting '0's if the number is expressed in decmial notation.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-number.js
---
(0064188)
AugustoMauch   
2014-02-12 18:44   
The problem related to the small numbers will be fixed in a separate issue.
(0064198)
shankarb   
2014-02-13 05:33   
Code reviewed and verified in pi changeset 083d67ea235a.
(0064206)
hudsonbot   
2014-02-13 07:16   
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/76fb3237bc3a [^]
Maturity status: Test