Merge pull request #6155 from expsa/youn_dev_odex25_benefitt

[IMP] odex_benefit: IMP benefit
This commit is contained in:
kchyounes19 2026-01-12 13:03:08 +01:00 committed by GitHub
commit 6e88a6491b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1037,7 +1037,7 @@ class ServiceRequest(models.Model):
lambda
x: x.min_count_member <= rec.benefit_member_count <= x.max_count_member)).amount or 0
elif max_limit_type == 'region':
rec.service_max_amount = (rec.estimated_rent_amount / 12) + rec.added_amount_if_mother_dead
rec.service_max_amount = rec.estimated_rent_amount / 12
if rec.max_limit_period:
period_domain = base_domain.copy()
@ -1058,6 +1058,7 @@ class ServiceRequest(models.Model):
rec.service_max_amount *= num_months
if service_type == 'rent':
rec.service_max_amount += rec.added_amount_if_mother_dead
rec.requested_service_amount = min(rec.rent_amount_payment,
rec.estimated_rent_amount_payment) + rec.added_amount_if_mother_dead
elif rec.max_limit_period == "calendar_year":