analytics: rework BusinessInvoiceDao to work across invoices

Reparation items are generated on a new invoice, not on the same invoice
as the repaired items.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>