Automatic invoice numbering and saving