auto generate docnumber