Leonard Lin created OFBIZ-9157:
----------------------------------
Summary: "View Order" throws exception in getReturnableQuantity
Key: OFBIZ-9157
URL:
https://issues.apache.org/jira/browse/OFBIZ-9157 Project: OFBiz
Issue Type: Bug
Components: order
Affects Versions: Release Branch 16.11, Release Branch 15.12
Environment: Encountered this but in 15.x and 16.x Trunk versions
Reporter: Leonard Lin
Priority: Minor
Steps to Reproduce:
- Create a sales order
- Add 1 orderitem with no unitPrice set (unitPrice = null) for the product
- set the status of the order to completed
- go to order-management and try to open the order for display like:
https://localhost:8443/ordermgr/control/orderview?orderId=XXXXXExpected:
- the order is displayed with status completed
Actual:
- A groovy exception is displayed.
Analysis:
The service "getReturnableQuantity" throws an exception because it returns the returnablePrice = null, because the unitPrice of the orderItem was null.
The OUT field returnablePrice is mandatory according to the service-definition. The return parameter is set but the value is null, hence the exception.
Attached is a patch that will adjust the service-deinition to allow for "null" value of the OUT parameter.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)