Unused Credits

Unused Credits

I have customers who have made overpayments and from the app, it goes to unused credits. how do i transfer the amounts to future invoices so that it appears to have paid in advance