Fix adding invoices for withdrawn courses