Browse Source

CLDC-3297: Add assigned to field to xml exports (#2345)

* feat: add fields to xml for 24/25 on

* CLDC-3297: Add empty assigned to column to XML exports

---------

Co-authored-by: natdeanlewissoftwire <nat.dean-lewis@softwire.com>
pull/2347/head
Robert Sullivan 9 months ago committed by GitHub
parent
commit
845065d2d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/services/exports/lettings_log_export_constants.rb
  2. 3
      app/services/exports/lettings_log_export_service.rb
  3. 1
      spec/fixtures/exports/general_needs_log_24_25.xml

2
app/services/exports/lettings_log_export_constants.rb

@ -154,6 +154,7 @@ module Exports::LettingsLogExportConstants
"pscharge_value_check",
"supcharg_value_check",
"carehome_charges_value_check",
"assigned_to",
]
(1..8).each do |index|
@ -187,6 +188,7 @@ module Exports::LettingsLogExportConstants
"pscharge_value_check",
"supcharg_value_check",
"carehome_charges_value_check",
"assigned_to",
]
PRE_2024_EXPORT_FIELDS = Set[

3
app/services/exports/lettings_log_export_service.rb

@ -230,6 +230,9 @@ module Exports
attribute_hash["renttype_detail"] = LettingsLog::RENTTYPE_DETAIL_MAPPING[lettings_log.rent_type] if lettings_log.rent_type.present?
# field to be added in future
attribute_hash["assigned_to"] = nil
attribute_hash
end

1
spec/fixtures/exports/general_needs_log_24_25.xml vendored

@ -172,6 +172,7 @@
<created_by>test1@example.com</created_by>
<amended_by/>
<renttype_detail>2</renttype_detail>
<assigned_to/>
<providertype>1</providertype>
</form>
</forms>

Loading…
Cancel
Save