Login  Register

[jira] [Commented] (OFBIZ-5335) Using type=accounting-number in form in facility generates wrong output for inventory overview

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

[jira] [Commented] (OFBIZ-5335) Using type=accounting-number in form in facility generates wrong output for inventory overview

Nicolas Malin (Jira)
106048 posts

    [ https://issues.apache.org/jira/browse/OFBIZ-5335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13783709#comment-13783709 ]

Pierre Smits commented on OFBIZ-5335:
-------------------------------------

Jacques,

When changing 'default.currency.format'  to #.##0,00 (as used in NL and DE) I get following error:

[java] Exception in thread "main" java.lang.ExceptionInInitializerError
     [java] at org.ofbiz.entity.model.ModelViewEntity$ViewConditionExpr.<init>(ModelViewEntity.java:1327)
     [java] at org.ofbiz.entity.model.ModelViewEntity$ViewConditionList.<init>(ModelViewEntity.java:1443)
     [java] at org.ofbiz.entity.model.ModelViewEntity$ViewEntityCondition.<init>(ModelViewEntity.java:1273)
     [java] at org.ofbiz.entity.model.ModelViewEntity$ModelViewLink.<init>(ModelViewEntity.java:1109)
     [java] at org.ofbiz.entity.model.ModelViewEntity.<init>(ModelViewEntity.java:130)
     [java] at org.ofbiz.entity.model.ModelReader.createModelViewEntity(ModelReader.java:597)
     [java] at org.ofbiz.entity.model.ModelReader.buildEntity(ModelReader.java:161)
     [java] at org.ofbiz.entity.model.ModelReader.getEntityCache(ModelReader.java:239)
     [java] at org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:95)
     [java] at org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:231)
     [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33)
     [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25)
     [java] at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:200)
     [java] at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:51)
     [java] at org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:190)
     [java] at org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:188)
     [java] at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:124)
     [java] at org.ofbiz.base.start.Start.initStartLoaders(Start.java:247)
     [java] at org.ofbiz.base.start.Start.init(Start.java:215)
     [java] at org.ofbiz.base.start.Start.main(Start.java:112)
     [java] Caused by: java.lang.IllegalArgumentException: Malformed pattern "#.##0,00"
     [java] at java.text.DecimalFormat.applyPattern(DecimalFormat.java:2591)
     [java] at java.text.DecimalFormat.<init>(DecimalFormat.java:416)
     [java] at org.ofbiz.base.util.UtilFormatOut.<clinit>(UtilFormatOut.java:46)
     [java] ... 20 more

> Using type=accounting-number in form in facility generates wrong output for inventory overview
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-5335
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5335
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Critical
>
> When using locale DE or NL several quantities (ATP, QOH and others) get transformed wrong.
> E.g. a ATP of 250 for a product is 250.00 in locale EN or FR, but for DE and NL the output is 250.000.000,00



--
This message was sent by Atlassian JIRA
(v6.1#6144)