format the total line in view tranasaction