Generate diplomas number after save