iStore Direct Item Entry - Unable To Merge Cart Lines When IBE: Merge Cart Lines is set to Yes And Quantity To Merge Contains A Decimal Point (Doc ID 2027017.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle iStore - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

PROBLEM

In iStore when adding items via Direct Item Entry that contain quantity that has a decimal point (eg: 1.5) and need to be merged   an Application Error occurs

The profile option IBE: Merge Cart Lines is set to Yes per business requirement.


ERROR

Source shows :-


Message: For input string: "1.5"
Stack:

java.lang.NumberFormatException: For input string: "1.5"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at java.lang.Integer.parseInt(Integer.java:527)
at oracle.apps.ibe.shoppingcart.util.DEItem.mergeDEItems(DEItem.java:796)
at _ibeCScpDirectEntry._jspService(_ibeCScpDirectEntry.java:2786)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)




STEPS

The issue can be reproduced at will with the following steps:
1. Go to Direct item entry
2. in line 1, enter part number with qty of 1
3. in line 2, enter the same part # with qty of 1.5
4. Expectation is to get 1 cart line with item and qty of 2.5
5. Instead error occurs




Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms