adding total to purchase header