.. include:: /Includes.rst.txt .. _feature-1791273902: ================================================================ Feature: Limit leave types to positions, roles and personal data ================================================================ Description =========== Leave types gain the eligibility kinds ``jobPosition``, ``jobRole``, ``gender``, ``maritalStatus`` and ``nationality``, each with a list of allowed values. The personal kinds are evaluated by the system only: they are read for the decision and never returned, a refused request names only the kind, and empty data never passes a condition. A refused request now carries one violation per failed condition, coded ``eligibility.``, instead of the general ``notEligible``. ``listLeaveEligibilityConditionKinds`` returns a ``label`` in the reader's language. Impact ====== Clients that matched the violation code ``notEligible`` match ``eligibility.`` instead. Marital status and nationality are not recorded on employees yet, so conditions on them are never met until the employee record keeps them. .. index:: API, Frontend, package:adsum-leave, package:adsum-core