Browse Source

CLDC-1688 Update CSV service for new column

cldc-1688-deactivation-affected-logs
Sam Collard 2 years ago
parent
commit
8375bb5f26
  1. 2
      app/services/csv/lettings_log_csv_service.rb
  2. 1
      spec/services/csv/lettings_log_csv_service_spec.rb

2
app/services/csv/lettings_log_csv_service.rb

@ -1,6 +1,6 @@
module Csv
class LettingsLogCsvService
CSV_FIELDS_TO_OMIT = %w[hhmemb net_income_value_check first_time_property_let_as_social_housing renttype needstype postcode_known is_la_inferred totchild totelder totadult net_income_known is_carehome previous_la_known is_previous_la_inferred age1_known age2_known age3_known age4_known age5_known age6_known age7_known age8_known letting_allocation_unknown details_known_2 details_known_3 details_known_4 details_known_5 details_known_6 details_known_7 details_known_8 rent_type_detail wrent wscharge wpschrge wsupchrg wtcharge wtshortfall rent_value_check old_form_id old_id retirement_value_check tshortfall_known pregnancy_value_check hhtype new_old vacdays la prevloc].freeze
CSV_FIELDS_TO_OMIT = %w[hhmemb net_income_value_check first_time_property_let_as_social_housing renttype needstype postcode_known is_la_inferred totchild totelder totadult net_income_known is_carehome previous_la_known is_previous_la_inferred age1_known age2_known age3_known age4_known age5_known age6_known age7_known age8_known letting_allocation_unknown details_known_2 details_known_3 details_known_4 details_known_5 details_known_6 details_known_7 details_known_8 rent_type_detail wrent wscharge wpschrge wsupchrg wtcharge wtshortfall rent_value_check old_form_id old_id retirement_value_check tshortfall_known pregnancy_value_check hhtype new_old vacdays la prevloc impacted_by_scheme_deactivation].freeze
def initialize(user)
@user = user

1
spec/services/csv/lettings_log_csv_service_spec.rb

@ -200,6 +200,7 @@ RSpec.describe Csv::LettingsLogCsvService do
hhtype
new_old
vacdays
impacted_by_scheme_deactivation
unittype_sh
scheme_code
scheme_service_name

Loading…
Cancel
Save