Applied fix from trunk for revision: 1581972 
===

Misc fixes to get the right values for total cost and total retail value of inventory items; thanks to Igor Gallingani for the bug report in OFBIZ-4985.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/release13.07@1581974 13f79535-47bb-0310-9956-ffa450edef68