Printing the fields from transaction class

In reply to sriganeshd:

Create 2 separate method to print items in transaction class.