[IMP] odex_benefit: IMP benefit
This commit is contained in:
parent
300d7fad4f
commit
d0e7a2cbe8
|
|
@ -685,12 +685,12 @@ class FamilyMemberProfile(models.Model):
|
||||||
rec.member_status = 'non_benefit'
|
rec.member_status = 'non_benefit'
|
||||||
reasons.append(
|
reasons.append(
|
||||||
_("He has a physical or intellectual disability but is over %s years of age.") % exceptional_age_has_disabilities)
|
_("He has a physical or intellectual disability but is over %s years of age.") % exceptional_age_has_disabilities)
|
||||||
if current_education_status_id.case_study != 'continuous':
|
if rec.case_study != 'continuous':
|
||||||
rec.member_status = 'non_benefit'
|
rec.member_status = 'non_benefit'
|
||||||
reasons.append(
|
reasons.append(
|
||||||
_("Over %s years old and not enrolled in any educational institution.") % male_benefit_age
|
_("Over %s years old and not enrolled in any educational institution.") % male_benefit_age
|
||||||
)
|
)
|
||||||
elif current_education_status_id.case_study == 'continuous':
|
elif rec.case_study == 'continuous':
|
||||||
if rec.age >= exceptional_age_scientific_specialty:
|
if rec.age >= exceptional_age_scientific_specialty:
|
||||||
rec.member_status = 'non_benefit'
|
rec.member_status = 'non_benefit'
|
||||||
reasons.append(
|
reasons.append(
|
||||||
|
|
@ -706,7 +706,7 @@ class FamilyMemberProfile(models.Model):
|
||||||
reasons.append(
|
reasons.append(
|
||||||
_("He is over %s years of age and not enrolled in an educational institution.") % male_benefit_age)
|
_("He is over %s years of age and not enrolled in an educational institution.") % male_benefit_age)
|
||||||
if not rec.is_married and rec.education_status in [
|
if not rec.is_married and rec.education_status in [
|
||||||
'educated'] and current_education_status_id.case_study in [
|
'educated'] and rec.case_study in [
|
||||||
'graduate', 'intermittent']:
|
'graduate', 'intermittent']:
|
||||||
rec.member_status = 'non_benefit'
|
rec.member_status = 'non_benefit'
|
||||||
reasons.append(
|
reasons.append(
|
||||||
|
|
@ -721,7 +721,7 @@ class FamilyMemberProfile(models.Model):
|
||||||
|
|
||||||
elif rec.relationn.relation_type == 'daughter':
|
elif rec.relationn.relation_type == 'daughter':
|
||||||
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 rec.case_study != 'continuous':
|
||||||
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:
|
||||||
|
|
@ -744,7 +744,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 rec.is_work and rec.education_status in [
|
if rec.is_work and rec.education_status in [
|
||||||
'educated'] and current_education_status_id.case_study in [
|
'educated'] and rec.case_study in [
|
||||||
'graduate', 'intermittent']:
|
'graduate', 'intermittent']:
|
||||||
rec.member_status = 'non_benefit'
|
rec.member_status = 'non_benefit'
|
||||||
reasons.append(_("She is employed and has completed her education."))
|
reasons.append(_("She is employed and has completed her education."))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue