Applying client credits to invoices