Browse Source

CLDC-1980: add All buyers labels to soft validations for 2026 onwards

pull/3172/head
Nat Dean-Lewis 1 week ago
parent
commit
ab3412be7a
  1. 3
      app/models/form/sales/questions/deposit_value_check.rb
  2. 3
      app/models/form/sales/questions/savings_value_check.rb

3
app/models/form/sales/questions/deposit_value_check.rb

@ -18,6 +18,7 @@ class Form::Sales::Questions::DepositValueCheck < ::Form::Question
},
],
}
@check_answers_card_number = 0
@check_answers_card_number = 0 unless form.start_year_2026_or_later?
@check_answers_card_title = "All buyers" if form.start_year_2026_or_later?
end
end

3
app/models/form/sales/questions/savings_value_check.rb

@ -18,6 +18,7 @@ class Form::Sales::Questions::SavingsValueCheck < ::Form::Question
},
],
}
@check_answers_card_number = 0
@check_answers_card_number = 0 unless form.start_year_2026_or_later?
@check_answers_card_title = "All buyers" if form.start_year_2026_or_later?
end
end

Loading…
Cancel
Save