Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005839Openbravo ERPB. User interfacepublic2008-11-05 23:372008-12-16 17:32
galderromo 
alostale 
immediatemajoralways
closedfixed 
20Gentoo 2.6.24
2.40beta 
 
Core
No
0005839: Number decimals, edit mode and grid mode
Having the currency configurated to:
Price precision:4
Cost precision:4
Standard precision:2

When inserting a 4 decimal value on line price, it saves 4 decimals but just shows 3 decimals. This record on grid mode shows 4 decimals.
No tags attached.
depends on backport 0005910 closed alostale Number decimals, edit mode and grid mode 
has duplicate backport 0004962 closed alostale Number formats in relation. 
has duplicate defect 0004024pi closed alostale Number formats in relation. 
Issue History
2008-11-05 23:37galderromoNew Issue
2008-11-05 23:37galderromoAssigned To => rafaroda
2008-11-05 23:37galderromosf_bug_id0 => 2226911
2008-11-09 20:53psarobeNote Added: 0010115
2008-11-09 20:53psarobeStatusnew => feedback
2008-11-10 09:44networkbPrioritynormal => immediate
2008-11-10 09:44networkbIssue Monitored: networkb
2008-11-10 09:51psarobeNote Added: 0010132
2008-11-10 12:26galderromoNote Added: 0010143
2008-11-10 12:45galderromoNote Added: 0010145
2008-11-11 10:25rafarodaStatusfeedback => scheduled
2008-11-11 10:25rafarodaAssigned Torafaroda => alostale
2008-11-11 10:25rafarodafix_in_branch => trunk
2008-11-11 13:28svnbotCheckin
2008-11-11 13:28svnbotNote Added: 0010166
2008-11-11 13:28svnbotStatusscheduled => resolved
2008-11-11 13:28svnbotResolutionopen => fixed
2008-11-11 13:28svnbotsvn_revision => 9877
2008-11-20 10:51rafarodaRelationship addedhas duplicate 0004962
2008-11-20 10:52rafarodaRelationship addedhas duplicate 0004024
2008-12-16 17:32psarobeRegression testing => No
2008-12-16 17:32psarobeStatusresolved => closed

Notes
(0010115)
psarobe   
2008-11-09 20:53   
Hi Galder,

Is it your format.xml file properly configured?

Please write the steps of how to define the precision in OpenbravoERP in order the QA team will able to verify the bug is well fixed
(0010132)
psarobe   
2008-11-10 09:51   
Hi networkb,

Please answer the question we aks from the triage team

Thanks
(0010143)
galderromo   
2008-11-10 12:26   
Sorry, I reviewed again the Format.xml and wasn't properly defined. Half of the problem has been fixed with the new configuration but the other half hasn't.

If you define the Format.xml like:
<Number name="qtyEdition" decimal="." grouping="," formatOutput="#0.####" formatInternal="#0.0000" />
<Number name="qtyRelation" decimal="." grouping="," formatOutput="#,##0.####" formatInternal="#0.0000" />

And:
Introduce 0.15 in edition mode, 0.1500 is registered and showed. OK
Introduce 0.1514 in edition mode, 0.1514 is registered and showed. OK
Introduce 0.151487 in edition mode, 0.1515 is registered and showed. OK

But:
Introduce 0.15 in edition mode, 0.15 is showed in relation mode. WRONG
Introduce 0.1514 in edition mode, 0.1514 is showed in relation mode. WRONG
Introduce 0.15 in edition mode, 0.15 is showed in relation mode. WRONG

Relation mode ignores formatOutput.
(0010145)
galderromo   
2008-11-10 12:45   
Probably with this example is much more clear:

<Number name="qtyRelation" decimal="." grouping="," formatOutput="0,000.0000" formatInternal="#0.0000" />
<Number name="qtyEdition" decimal="." grouping="," formatOutput="#0.0000" formatInternal="#0.0000" />

Relation mode:

Introduce 0.15 in edition mode, 0.15 is showed in relation mode instead of 0,000.1500 WRONG
(0010166)
svnbot   
2008-11-11 13:28   
Repository: openbravo
Revision: 9877
Author: alostale
Date: 2008-11-11 13:28:24 +0100 (Tue, 11 Nov 2008)

fixed bug 0005839: Number decimals in grid mode do not take into account formats defined in format.xml file

---
U trunk/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
U trunk/src/org/openbravo/erpCommon/utility/DataGrid.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=9877&sc=1 [^]