How to print last invoice or previous invoice?