8 digit number generation of document number