[IMP] odex_benefit: IMP benefit

This commit is contained in:
younes 2026-01-12 13:01:56 +01:00
parent a7c81a2f5c
commit a91fdcd689
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":