From 02b71c223a9ec9c4dd0232591d692de136e6d95f Mon Sep 17 00:00:00 2001 From: samyou-softwire Date: Mon, 9 Mar 2026 09:28:48 +0000 Subject: [PATCH] fixup! CLDC-4212: Add 0.1% tolerance to % calculations update comment --- app/models/sales_log.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/sales_log.rb b/app/models/sales_log.rb index e8433c1bd..befdfacb2 100644 --- a/app/models/sales_log.rb +++ b/app/models/sales_log.rb @@ -271,8 +271,8 @@ class SalesLog < Log def expected_shared_ownership_deposit_value_tolerance return 1 unless value && equity - # we found that a simple tolerance was not quite what we wanted here. - # CORE wants it so if a user say, has a 66.6% equity then can enter either 66.6% or 66.7% + # we found that a fixed tolerance was not quite what we wanted here. + # CORE wants it so if a user say, has a 66.666% equity they can enter either 66.6% or 66.7% (or 66.5%) # so in 2026 we base our tolerance off of a discount 0.1% higher or lower if form.start_year_2026_or_later? lower_bound = value * ((equity - 0.1) / 100)