Generates invoices