Adds total paid/cost values to viewpatient.html.