How do I tag a single refund to a customer in relation to 2 invoices

Would be much easier if accounts could be handled as simple transactional accounts.