Two places collect leftovers:
- Payments to deposit should only hold payments that are really on their way to the bank. A payment that sits there for weeks usually went to the bank in a deposit recorded the wrong way, often with an income category. Fix the deposit so it takes the payment from Payments to deposit.
- Unapplied payments and credits lower a customer's balance but leave the invoice open. Apply them to the invoice they pay.
Fix the transaction that is wrong rather than adding new ones to balance it out.