Merge pull request #6278 from expsa/tree

[IMP] odex_benefit: IMP benefit
This commit is contained in:
kchyounes19 2026-01-21 07:23:42 +01:00 committed by GitHub
commit 9f0959fc49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -725,7 +725,7 @@ class FamilyMemberProfile(models.Model):
rec.member_status = 'non_benefit'
reasons.append(_("She is employed and not enrolled in an educational institution."))
if age_exceeded:
if has_benefiting_son or has_younger_benefiting_daughter:
if rec.age < minor_siblings_age and (has_benefiting_son or has_younger_benefiting_daughter):
rec.member_status = 'benefit'
else:
rec.member_status = 'non_benefit'