Customer Statement to include all items

If you find their outstanding invoice and “log payment” → “apply from credit” then that will assign the credit on account as a part-payment towards the new invoice, and the outstanding balance on that invoice will then be correct.