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/trunk@1581972 13f79535-47bb-0310-9956-ffa450edef68