Browse Source

chore: lint

pull/1404/head
Sam Seed 3 years ago
parent
commit
fa433015a9
  1. 6
      app/models/validations/sales/financial_validations.rb

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

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

Loading…
Cancel
Save