Browse Source

feat: add fields to xml for 24/25 on (#2329)

pull/2345/head^2 v0.4.26
natdeanlewissoftwire 9 months ago committed by GitHub
parent
commit
9881bc7c0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      app/services/exports/lettings_log_export_constants.rb
  2. 6
      spec/fixtures/exports/general_needs_log_24_25.xml

12
app/services/exports/lettings_log_export_constants.rb

@ -148,6 +148,12 @@ module Exports::LettingsLogExportConstants
"county_as_entered", "county_as_entered",
"postcode_full_as_entered", "postcode_full_as_entered",
"la_as_entered", "la_as_entered",
"net_income_value_check",
"rent_value_check",
"scharge_value_check",
"pscharge_value_check",
"supcharg_value_check",
"carehome_charges_value_check",
] ]
(1..8).each do |index| (1..8).each do |index|
@ -175,6 +181,12 @@ module Exports::LettingsLogExportConstants
"county_as_entered", "county_as_entered",
"postcode_full_as_entered", "postcode_full_as_entered",
"la_as_entered", "la_as_entered",
"net_income_value_check",
"rent_value_check",
"scharge_value_check",
"pscharge_value_check",
"supcharg_value_check",
"carehome_charges_value_check",
] ]
PRE_2024_EXPORT_FIELDS = Set[ PRE_2024_EXPORT_FIELDS = Set[

6
spec/fixtures/exports/general_needs_log_24_25.xml vendored

@ -78,6 +78,7 @@
<rp_hardship>0</rp_hardship> <rp_hardship>0</rp_hardship>
<rp_dontknow>0</rp_dontknow> <rp_dontknow>0</rp_dontknow>
<tenancyother/> <tenancyother/>
<net_income_value_check/>
<irproduct_other/> <irproduct_other/>
<reason>4</reason> <reason>4</reason>
<propcode>123</propcode> <propcode>123</propcode>
@ -127,6 +128,7 @@
<relat6/> <relat6/>
<relat7/> <relat7/>
<relat8/> <relat8/>
<rent_value_check/>
<lar>2</lar> <lar>2</lar>
<irproduct/> <irproduct/>
<joint>3</joint> <joint>3</joint>
@ -142,8 +144,12 @@
<address_line2/> <address_line2/>
<town_or_city>London</town_or_city> <town_or_city>London</town_or_city>
<county/> <county/>
<carehome_charges_value_check/>
<discarded_at/> <discarded_at/>
<creation_method>2</creation_method> <creation_method>2</creation_method>
<supcharg_value_check/>
<scharge_value_check/>
<pscharge_value_check/>
<duplicate_set_id/> <duplicate_set_id/>
<accessible_register>2</accessible_register> <accessible_register>2</accessible_register>
<nationality_all/> <nationality_all/>

Loading…
Cancel
Save