resolves customer_invoices and transaction_invoices relationship errors