Reverting query style change in list_invoices