Version 4.0.5 & 3.6.26 - Changes the calculation of the "Freight" value for catchweight items when the cost from a Supplemental Purchase Order was distributed with the "by Units" option.
For a catchweight item, since the item's costs and prices are supposed to be expressed as "per pound" values, the distributed supplemental amount, which is currently a "per unit" cost, needs to be converted into a "per pound" value.
For this modification the conversion of the cost value from "per unit" to "per pound" will use the actual quantity received and the actual weight received multiplying the "per unit" cost by the number of units received to produce an "extended cost" value and then dividing by the weight received to get a "per pound" cost value which is then used as the working supplemental cost for this expense.
For consistency the cost conversion calculations for the "by Weight" and "by Value" distribution methods so that they also use the actual quantity and weight received.