Skip to content

Commit

Permalink
remove building society roll number from csv
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Oct 3, 2024
1 parent 97bcfc2 commit b2d8319
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 20 deletions.
4 changes: 0 additions & 4 deletions app/models/payroll/payment_csv_row.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ def scheme_amount
model.award_amount.to_s
end

def roll_number
model.building_society_roll_number
end

def payment_id
model.id
end
Expand Down
1 change: 0 additions & 1 deletion app/models/payroll/payments_csv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class PaymentsCsv
banking_name: "BANK_NAME",
bank_sort_code: "SORT_CODE",
bank_account_number: "ACCOUNT_NUMBER",
roll_number: "ROLL_NUMBER",
scheme_amount: "SCHEME_AMOUNT",
payment_id: "PAYMENT_ID",
policies_in_payment: "CLAIM_POLICIES",
Expand Down
2 changes: 1 addition & 1 deletion app/views/claims/_account_details.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<%= f.govuk_error_summary %>

<%= f.govuk_fieldset legend: {
text: t("questions.account_details", bank_or_building_society: bank_or_building_society),
text: t("questions.account_details"),
tag: "h1",
size: "l"
} do %>
Expand Down
7 changes: 0 additions & 7 deletions app/views/claims/building_society_account.html.erb

This file was deleted.

5 changes: 2 additions & 3 deletions app/views/claims/personal_bank_account.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<% bank_or_building_society = "personal bank account" %>
<% content_for(:page_title, page_title(t("questions.account_details", bank_or_building_society: bank_or_building_society), journey: current_journey_routing_name, show_error: @form.errors.any?)) %>
<% content_for(:page_title, page_title(t("questions.account_details"), journey: current_journey_routing_name, show_error: @form.errors.any?)) %>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= render partial: "account_details", locals: { bank_or_building_society: bank_or_building_society, current_journey_routing_name: current_journey_routing_name} %>
<%= render partial: "account_details", locals: { current_journey_routing_name: current_journey_routing_name} %>
</div>
</div>
5 changes: 1 addition & 4 deletions spec/models/payroll/payment_csv_row_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
claim.banking_name,
"00-11-22",
claim.bank_account_number,
claim.building_society_roll_number,
payment_award_amount.to_s,
payment.id,
payment.policies_in_payment,
Expand Down Expand Up @@ -163,7 +162,6 @@
claim.banking_name,
"33-09-90",
claim.bank_account_number,
nil,
payment_award_amount.to_s,
payment.id,
payment.policies_in_payment,
Expand Down Expand Up @@ -236,7 +234,6 @@
claim.banking_name,
"21-09-09",
claim.bank_account_number,
nil,
payment_award_amount.to_s,
payment.id,
payment.policies_in_payment,
Expand All @@ -259,7 +256,7 @@

describe "PAYMENT_ID" do
it "is 36 characters long, satisfying DfE Payroll’s length validation" do
expect(row[30].length).to eq(36)
expect(row[29].length).to eq(36)
end
end

Expand Down

0 comments on commit b2d8319

Please sign in to comment.