[ 1693997 ] Calculation of cost should happen when transaction complete [ 1991574 ] Average Cost Error