Fix for re-post problem for out of sequence receive/sales when calculating cost of good sold.