Added downloadInvoice