how to generate invoice numbers