Implemented a perpetual average cost calculation for for all transactions and items.