Browse Source

CLDC-4053: Update valid equity ranges (#3087)

leave as-is for 2023 to avoid invalidating logs from previous years
main v0.5.19
Samuel Young 1 week ago committed by GitHub
parent
commit
cd635e6b3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 18
      app/models/validations/sales/financial_validations.rb

18
app/models/validations/sales/financial_validations.rb

@ -158,15 +158,25 @@ private
24 => 25..75,
31 => 0..75,
},
2023 => {
2 => 25..75,
30 => 10..75,
18 => 25..75,
16 => 10..75,
24 => 25..75,
31 => 0..75,
32 => 0..75,
},
}.freeze
DEFAULT_EQUITY_RANGES = {
2 => 25..75,
30 => 10..75,
18 => 25..75,
18 => 25..90,
16 => 10..75,
24 => 25..75,
31 => 0..75,
32 => 0..75,
24 => 10..75,
28 => 10..75,
31 => 10..75,
32 => 10..75,
}.freeze
end

Loading…
Cancel
Save