Skip to content

Commit

Permalink
Add more context to innovation 6.X questions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubosky committed Jul 27, 2023
1 parent 1a8e112 commit ffb16d9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions forms/award_years/v2024/innovation/innovation_step4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ def innovation_step4
<p>
We recommend that you answer question C2.2 before proceeding with this and further questions, as this will automatically adjust the number of years you need to provide the figures for.
</p>
)
<p>Enter '0' if you had none.</p>
).squish
type :number
label ->(y) { "Financial year #{y}" }

Expand All @@ -337,6 +338,7 @@ def innovation_step4
sub_ref "D 6.2"
required
section :innovation_financials
context %(<p>Enter '0' if you had none.</p>)
type :money
label ->(y) { "Financial year #{y}" }

Expand Down Expand Up @@ -393,7 +395,8 @@ def innovation_step4
<p>
If your innovation is a product, you must provide the unit price.
</p>
)
<p>Enter '0' if you had none.</p>
).squish

type :money
label ->(y) { "Financial year #{y}" }
Expand All @@ -418,7 +421,8 @@ def innovation_step4
section :innovation_financials
context %(
<p>If you haven't reached your latest year-end, use estimates to complete this question.</p>
)
<p>Enter '0' if you had none.</p>
).squish
type :money
label ->(y) { "Financial year #{y}" }
by_year_condition :innovation_was_launched_in_the_market, ->(v) { Utils::Date.within_range?(v, AwardYear.start_trading_between(2, 3)) }, 2, data: {value: AwardYear.start_trading_between(2, 3, minmax: true, format: true), type: :range, identifier: "2 to 3"}
Expand Down

0 comments on commit ffb16d9

Please sign in to comment.