class Form::Sales::Questions::Grant < ::Form::Question def initialize(id, hsh, page) super @id = "grant" @type = "numeric" @min = 0 @max = 999_999 @step = 1 @width = 5 @prefix = "£" @question_number = get_question_number_from_hash(QUESTION_NUMBER_FROM_YEAR) @top_guidance_partial = "financial_calculations_discounted_ownership" @strip_commas = true end QUESTION_NUMBER_FROM_YEAR = { 2023 => 101, 2024 => 102, 2025 => 104, 2026 => 114 }.freeze end