Printing the fields from transaction class

In reply to Rahulkumar Patel:

In reply to sriganeshd:
Create 2 separate method to print items in transaction class.

Like, creating two separate do_print methods inside the transaction class?