-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
High
-
Affects Version/s: None
-
None
The system does not enforce proper age validation based on family relationships.
Currently, while adding family members, it allows elder relationships (such as Father, Mother, Grandfather, Grandmother, Father-in-law, Mother-in-law, etc.) to be registered with an age less than younger members (e.g., son/daughter).
This results in logically incorrect family hierarchy data.
Steps to Reproduce
- Register a beneficiary (e.g., Son) with age 25 years
- Add a new family member with relationship:
- Father / Mother / Grandfather / etc.
- Enter age less than 25 (e.g., 20 years)
- Submit the form
Actual Result
- System allows saving the record
- Elder family member has lower age than younger member
Expected Result
- System should enforce relationship-based age validation
- Elder roles must have greater age than dependent roles
- Proper validation message should be shown, e.g.:
"Selected relationship requires age to be greater than existing family member"