You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "BJ Freeman (JIRA)" <ji...@apache.org> on 2009/05/08 22:58:45 UTC
[jira] Created: (OFBIZ-2444) webtools import errors when a currency
specific value includes a thousands delimiter USD
webtools import errors when a currency specific value includes a thousands delimiter USD
----------------------------------------------------------------------------------------
Key: OFBIZ-2444
URL: https://issues.apache.org/jira/browse/OFBIZ-2444
Project: OFBiz
Issue Type: Bug
Components: framework
Affects Versions: Release Branch 9.04, SVN trunk
Reporter: BJ Freeman
Fix For: Release Branch 9.04, SVN trunk
and entity field defined as
<field name="retailprice" type="currency-precise"></field>
when imported with a comma for thousands
<retailprice>1,199.95</retailprice>
gives this error
The Following Errors Occurred:
ERROR: Error parsing entity xml file: java.lang.NumberFormatException
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OFBIZ-2444) webtools import errors when a
currency specific value includes a thousands delimiter USD
Posted by "BJ Freeman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-2444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12707633#action_12707633 ]
BJ Freeman commented on OFBIZ-2444:
-----------------------------------
So the question is for a solution.
do require all input to be deviod of delimiters, other than the decimal place so no change to code.
or
do we add functionality to replace the comma before sending the string to the numberformatter.
I would prefer a solution more like the second one. also remove currency symbols. as part of the string operations.
> webtools import errors when a currency specific value includes a thousands delimiter USD
> ----------------------------------------------------------------------------------------
>
> Key: OFBIZ-2444
> URL: https://issues.apache.org/jira/browse/OFBIZ-2444
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Release Branch 9.04, SVN trunk
> Reporter: BJ Freeman
> Fix For: Release Branch 9.04, SVN trunk
>
>
> and entity field defined as
> <field name="retailprice" type="currency-precise"></field>
> when imported with a comma for thousands
> <retailprice>1,199.95</retailprice>
> gives this error
> The Following Errors Occurred:
> ERROR: Error parsing entity xml file: java.lang.NumberFormatException
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.