How to create a customer statement?

First, for agreement between the customer and our company (sometimes by mistake, lost invoices etc, there is a difference) and they ask for agreement sheet.

And secondly, if a customer has a zero balance, how we can see all his transactions?

See example: