The check for existing Leave Entitlement (to avoid overwriting existing Leave entitlement), have erroneous handling. When no Leave Entitlement found for given key (ID + year + Leave Type), API response of NULL should allow user to create Leave Entitlement with the values.
The check for existing Leave Entitlement (to avoid overwriting existing Leave entitlement), have erroneous handling. When no Leave Entitlement found for given key (ID + year + Leave Type), API response of NULL should allow user to create Leave Entitlement with the values.