diff --git a/app/models/payroll/payment_csv_row.rb b/app/models/payroll/payment_csv_row.rb index 463a2a45ae..cf34456281 100644 --- a/app/models/payroll/payment_csv_row.rb +++ b/app/models/payroll/payment_csv_row.rb @@ -123,6 +123,11 @@ def scheme_amount model.award_amount.to_s end + # NOTE: Payroll people require this on the CSV, but we no longer ask or store it + def roll_number + nil + end + def payment_id model.id end diff --git a/app/models/payroll/payments_csv.rb b/app/models/payroll/payments_csv.rb index 9c795a4079..084378e2ed 100644 --- a/app/models/payroll/payments_csv.rb +++ b/app/models/payroll/payments_csv.rb @@ -35,6 +35,7 @@ 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", diff --git a/spec/models/payroll/payment_csv_row_spec.rb b/spec/models/payroll/payment_csv_row_spec.rb index d4c8e0fa94..563608bb0e 100644 --- a/spec/models/payroll/payment_csv_row_spec.rb +++ b/spec/models/payroll/payment_csv_row_spec.rb @@ -87,6 +87,7 @@ claim.banking_name, "00-11-22", claim.bank_account_number, + nil, payment_award_amount.to_s, payment.id, payment.policies_in_payment, @@ -162,6 +163,7 @@ claim.banking_name, "33-09-90", claim.bank_account_number, + nil, payment_award_amount.to_s, payment.id, payment.policies_in_payment, @@ -234,6 +236,7 @@ claim.banking_name, "21-09-09", claim.bank_account_number, + nil, payment_award_amount.to_s, payment.id, payment.policies_in_payment, @@ -255,7 +258,7 @@ describe "PAYMENT_ID" do it "is 36 characters long, satisfying DfE Payroll’s length validation" do - expect(row[29].length).to eq(36) + expect(row[30].length).to eq(36) end end