Browse Source
# Conflicts: # config/locales/en.yml # db/schema.rb # spec/factories/sales_log.rb # spec/requests/sales_logs_controller_spec.rbpull/1232/head
48 changed files with 8061 additions and 7872 deletions
@ -0,0 +1,21 @@
|
||||
class Form::Sales::Pages::ExtraBorrowingValueCheck < Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@depends_on = [ |
||||
{ |
||||
"extra_borrowing_expected_but_not_reported?" => true, |
||||
}, |
||||
] |
||||
@title_text = { |
||||
"translation" => "soft_validations.extra_borrowing.title", |
||||
} |
||||
@informative_text = { |
||||
} |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [ |
||||
Form::Sales::Questions::ExtraBorrowingValueCheck.new(nil, nil, self), |
||||
] |
||||
end |
||||
end |
||||
@ -0,0 +1,23 @@
|
||||
class Form::Sales::Questions::ExtraBorrowingValueCheck < ::Form::Question |
||||
def initialize(id, hsh, page) |
||||
super(id, hsh, page) |
||||
@id = "extrabor_value_check" |
||||
@check_answer_label = "Extra borrowing confirmation" |
||||
@type = "interruption_screen" |
||||
@answer_options = { |
||||
"0" => { "value" => "Yes" }, |
||||
"1" => { "value" => "No" }, |
||||
} |
||||
@hidden_in_check_answers = { |
||||
"depends_on" => [ |
||||
{ |
||||
"extrabor_value_check" => 0, |
||||
}, |
||||
{ |
||||
"extrabor_value_check" => 1, |
||||
}, |
||||
], |
||||
} |
||||
@header = "Are you sure there is no extra borrowing?" |
||||
end |
||||
end |
||||
@ -1,17 +0,0 @@
|
||||
<%= govuk_details(summary_text: "What counts as income?") do %> |
||||
<p class="govuk-body">You should include any income from:</p> |
||||
<ul class="govuk-list govuk-list--bullet"> |
||||
<li>employment</li> |
||||
<li>pensions</li> |
||||
<li>investments</li> |
||||
<li>Universal Credit</li> |
||||
</ul> |
||||
|
||||
<p class="govuk-body">Don’t include:</p> |
||||
<ul class="govuk-list govuk-list--bullet"> |
||||
<li>National Insurance (NI) contributions and tax</li> |
||||
<li>housing benefit</li> |
||||
<li>child benefit</li> |
||||
<li>council tax support</li> |
||||
</ul> |
||||
<% end %> |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,13 @@
|
||||
class RemoveManagingOrganisationIdFromSalesLogs < ActiveRecord::Migration[7.0] |
||||
def up |
||||
change_table :sales_logs, bulk: true do |t| |
||||
t.remove :managing_organisation_id |
||||
end |
||||
end |
||||
|
||||
def down |
||||
change_table :sales_logs, bulk: true do |t| |
||||
t.column :managing_organisation_id, :bigint |
||||
end |
||||
end |
||||
end |
||||
@ -0,0 +1,7 @@
|
||||
class AddExtraBorrowingValueCheckToSales < ActiveRecord::Migration[7.0] |
||||
def change |
||||
change_table :sales_logs, bulk: true do |t| |
||||
t.column :extrabor_value_check, :integer |
||||
end |
||||
end |
||||
end |
||||
Loading…
Reference in new issue