Merge pull request #6278 from expsa/tree
[IMP] odex_benefit: IMP benefit
This commit is contained in:
commit
9f0959fc49
|
|
@ -725,7 +725,7 @@ class FamilyMemberProfile(models.Model):
|
||||||
rec.member_status = 'non_benefit'
|
rec.member_status = 'non_benefit'
|
||||||
reasons.append(_("She is employed and not enrolled in an educational institution."))
|
reasons.append(_("She is employed and not enrolled in an educational institution."))
|
||||||
if age_exceeded:
|
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'
|
rec.member_status = 'benefit'
|
||||||
else:
|
else:
|
||||||
rec.member_status = 'non_benefit'
|
rec.member_status = 'non_benefit'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue