Issue with employee all detail screen.

1) When designation is blank for registered employee, entered existing employee code in employee detail screen gives error on loading.
2) Entering duplicate code fetches incomplete data.