Fix for calculation error when reposting journal entries with inventory items using average cost method.