How to create and issue an invoice