get_all_invoices: correct rounding of rounding differences