[IMP] odex_benefit: IMP Benefit

This commit is contained in:
younes 2026-01-20 12:06:45 +01:00
parent 020ed54b97
commit f3d05ab60a
1 changed files with 3 additions and 3 deletions

View File

@ -720,9 +720,6 @@ class FamilyMemberProfile(models.Model):
_("Failure to complete the required documents or official proofs, or the familys ineligibility for the associations services, and the application has been rejected."))
elif rec.relationn.relation_type == 'daughter':
if rec.is_married:
rec.member_status = 'non_benefit'
reasons.append(_("Married"))
if rec.age < female_benefit_age and rec.is_work and rec.education_status not in [
'educated'] and current_education_status_id.case_study != 'continuous':
rec.member_status = 'non_benefit'
@ -737,6 +734,9 @@ class FamilyMemberProfile(models.Model):
"nor any younger benefiting daughter.")
% female_benefit_age
)
if rec.is_married:
rec.member_status = 'non_benefit'
reasons.append(_("Married"))
if rec.is_work and rec.member_income > max_income_for_benefit:
rec.member_status = 'non_benefit'
reasons.append(_("She works with a salary greater than %s.") % max_income_for_benefit)