Added support for automatic generation of invoice number.