Browse Source

Add purchase price numbering

CLDC-1864-question-numbering
Kat 2 years ago
parent
commit
fa8634c36c
  1. 2
      app/models/form/sales/questions/purchase_price.rb
  2. 2
      app/models/form/sales/questions/purchase_price_outright_ownership.rb
  3. 2
      app/models/form/sales/questions/value.rb
  4. 2
      spec/models/form/sales/questions/purchase_price_spec.rb
  5. 2
      spec/models/form/sales/questions/value_spec.rb

2
app/models/form/sales/questions/purchase_price.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::PurchasePrice < ::Form::Question
super
@id = "value"
@check_answer_label = "Purchase price"
@header = "What is the full purchase price?"
@header = "Q100 - What is the full purchase price?"
@type = "numeric"
@min = 0
@width = 5

2
app/models/form/sales/questions/purchase_price_outright_ownership.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::PurchasePriceOutrightOwnership < ::Form::Question
super
@id = "value"
@check_answer_label = "Purchase price"
@header = "What is the full purchase price?"
@header = "Q110 - What is the full purchase price?"
@type = "numeric"
@min = 0
@width = 5

2
app/models/form/sales/questions/value.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Value < ::Form::Question
super
@id = "value"
@check_answer_label = "Full purchase price"
@header = "What was the full purchase price?"
@header = "Q88 - What was the full purchase price?"
@type = "numeric"
@min = 0
@width = 5

2
spec/models/form/sales/questions/purchase_price_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::PurchasePrice, type: :model do
end
it "has the correct header" do
expect(question.header).to eq("What is the full purchase price?")
expect(question.header).to eq("Q100 - What is the full purchase price?")
end
it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/value_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Value, type: :model do
end
it "has the correct header" do
expect(question.header).to eq("What was the full purchase price?")
expect(question.header).to eq("Q88 - What was the full purchase price?")
end
it "has the correct check_answer_label" do

Loading…
Cancel
Save