Add automatic number generation to invoices