Browse Source

refactor: correctly order shared ownership types in array

pull/1404/head
Sam Seed 3 years ago
parent
commit
932c686afb
  1. 2
      app/models/validations/sales/financial_validations.rb

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

@ -55,7 +55,7 @@ module Validations::Sales::FinancialValidations
def validate_percentage_bought_at_least_threshold(record)
return unless record.stairbought && record.type
if [2, 18, 16, 24].include? record.type
if [2, 16, 18, 24].include? record.type
threshold = 10
elsif record.type == 30
threshold = 1

Loading…
Cancel
Save