generate the invoice