correct tax totals for invoices with multiple rates