If the company has a single bank account, get the first one on the customer invoice
Add the reverse link from invoices to sale orders
Add unique contraint on accout.analytic.account reference
Additional useful field in accounting module.