displaying total cost of transaction on the view transaction page