/[Apache-SVN]
ViewVC logotype

Revision 1779724


Jump to revision: Previous Next
Author: jleroux
Date: Sat Jan 21 11:15:17 2017 UTC (7 years, 2 months ago)
Changed paths: 1
Log Message:
Fixed: "View Order" throws exception in getReturnableQuantity
(OFBIZ-9157)

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=XXXXX

Expected:
- 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.

Solution: adjust the service-definition to allow for "null" value 
of the returnablePrice OUT parameter.

Thanks: Leonard Lin

Changed paths

Path Details
Directoryofbiz/trunk/applications/order/servicedef/services_return.xml modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26