How invoice number is generated and recorded within a spreadsheet or accounts system