Merge pull request #6263 from expsa/trett
[IMP] odex_benefit: IMP Benefit
This commit is contained in:
commit
566ad6f379
|
|
@ -720,9 +720,6 @@ class FamilyMemberProfile(models.Model):
|
|||
_("Failure to complete the required documents or official proofs, or the family’s ineligibility for the association’s 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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue