totals for invoices of sold books