Automatically allocate payments on accounts to open invoices

If you could just make supplier/client accounts simply transactional as per this feature request this would be a far better solution and would by default fix this issue.