How we can achieve below requirement.
We have 2 types of manager Line manager and XYZ manager ( both manager we can see in assignment page) . Now the requirement is, all employee don't have 2manager. Means some have a line manager and XYZ and some have only line manager.
If employees submitted the performance document. It will go to the manager's manager and XYZ manager for approval. ( The employee has line manager and XYZ manager) now we are good till.
If employee submitted the performance document, It will go to manager's manager and now this time employee don't have XYZ manager.