|
Deepak Dixit created OFBIZ-4972:
----------------------------------- Summary: NumberFormateException while update order items. Key: OFBIZ-4972 URL: https://issues.apache.org/jira/browse/OFBIZ-4972 Project: OFBiz Issue Type: Bug Components: order Reporter: Deepak Dixit Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk, Release Branch 12.04 If order item price or quantity is greater then 999 then update order items service throw NumberFormateException. Steps to regenerate: - Create an order(SO/PO). - Edit order items, set order price 1000 and update order items. - Again edit order items and try to update price from (1,000 to 1,002). System will throw NPE and if same will perform for quantity then it will throw NumberFormateException on console. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
[ https://issues.apache.org/jira/browse/OFBIZ-4972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Deepak Dixit updated OFBIZ-4972: -------------------------------- Attachment: OFBIZ-4972-10.04.patch OFBIZ-4972.patch Here is the patch to fix the issue. Cause: Update order items service not able to parse the price/quantity that are in comma format. Fix: Used ObjectType.simpleTypeConvert method to convert price/quantity string to BigDecimal instead of using BigDecimal constructor. > NumberFormateException while update order items. > ------------------------------------------------ > > Key: OFBIZ-4972 > URL: https://issues.apache.org/jira/browse/OFBIZ-4972 > Project: OFBiz > Issue Type: Bug > Components: order > Reporter: Deepak Dixit > Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk, Release Branch 12.04 > > Attachments: OFBIZ-4972-10.04.patch, OFBIZ-4972.patch > > > If order item price or quantity is greater then 999 then update order items service throw NumberFormateException. > Steps to regenerate: > - Create an order(SO/PO). > - Edit order items, set order price 1000 and update order items. > - Again edit order items and try to update price from (1,000 to 1,002). > System will throw NPE and if same will perform for quantity then it will throw NumberFormateException on console. > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashish Vijaywargiya reassigned OFBIZ-4972: ------------------------------------------ Assignee: Ashish Vijaywargiya > NumberFormateException while update order items. > ------------------------------------------------ > > Key: OFBIZ-4972 > URL: https://issues.apache.org/jira/browse/OFBIZ-4972 > Project: OFBiz > Issue Type: Bug > Components: order > Reporter: Deepak Dixit > Assignee: Ashish Vijaywargiya > Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk, Release Branch 12.04 > > Attachments: OFBIZ-4972-10.04.patch, OFBIZ-4972.patch > > > If order item price or quantity is greater then 999 then update order items service throw NumberFormateException. > Steps to regenerate: > - Create an order(SO/PO). > - Edit order items, set order price 1000 and update order items. > - Again edit order items and try to update price from (1,000 to 1,002). > System will throw NPE and if same will perform for quantity then it will throw NumberFormateException on console. > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashish Vijaywargiya closed OFBIZ-4972. -------------------------------------- > NumberFormateException while update order items. > ------------------------------------------------ > > Key: OFBIZ-4972 > URL: https://issues.apache.org/jira/browse/OFBIZ-4972 > Project: OFBiz > Issue Type: Bug > Components: order > Reporter: Deepak Dixit > Assignee: Ashish Vijaywargiya > Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk, Release Branch 12.04 > > Attachments: OFBIZ-4972-10.04.patch, OFBIZ-4972.patch > > > If order item price or quantity is greater then 999 then update order items service throw NumberFormateException. > Steps to regenerate: > - Create an order(SO/PO). > - Edit order items, set order price 1000 and update order items. > - Again edit order items and try to update price from (1,000 to 1,002). > System will throw NPE and if same will perform for quantity then it will throw NumberFormateException on console. > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13456328#comment-13456328 ] Deepak Dixit commented on OFBIZ-4972: ------------------------------------- Thanks Ashish. > NumberFormateException while update order items. > ------------------------------------------------ > > Key: OFBIZ-4972 > URL: https://issues.apache.org/jira/browse/OFBIZ-4972 > Project: OFBiz > Issue Type: Bug > Components: order > Reporter: Deepak Dixit > Assignee: Ashish Vijaywargiya > Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk, Release Branch 12.04 > > Attachments: OFBIZ-4972-10.04.patch, OFBIZ-4972.patch > > > If order item price or quantity is greater then 999 then update order items service throw NumberFormateException. > Steps to regenerate: > - Create an order(SO/PO). > - Edit order items, set order price 1000 and update order items. > - Again edit order items and try to update price from (1,000 to 1,002). > System will throw NPE and if same will perform for quantity then it will throw NumberFormateException on console. > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
| Free forum by Nabble | Edit this page |
