Merge pull request #6263 from expsa/trett

[IMP] odex_benefit: IMP Benefit
This commit is contained in:
kchyounes19 2026-01-20 12:08:35 +01:00 committed by GitHub
commit 566ad6f379
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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.")) _("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': 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 [ 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': 'educated'] and current_education_status_id.case_study != 'continuous':
rec.member_status = 'non_benefit' rec.member_status = 'non_benefit'
@ -737,6 +734,9 @@ class FamilyMemberProfile(models.Model):
"nor any younger benefiting daughter.") "nor any younger benefiting daughter.")
% female_benefit_age % 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: if rec.is_work and rec.member_income > max_income_for_benefit:
rec.member_status = 'non_benefit' rec.member_status = 'non_benefit'
reasons.append(_("She works with a salary greater than %s.") % max_income_for_benefit) reasons.append(_("She works with a salary greater than %s.") % max_income_for_benefit)