Browse Source

CLDC-649: Export provider type from owning organisation (#436)

* Export provider type from owning org

* Export DB value rather than string
pull/439/head
baarkerlounger 3 years ago committed by GitHub
parent
commit
be1417307c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/services/exports/case_log_export_service.rb
  2. 1
      spec/fixtures/exports/case_logs.xml

1
app/services/exports/case_log_export_service.rb

@ -63,6 +63,7 @@ module Exports
form << doc.create_element(key, value)
end
end
form << doc.create_element("providertype", case_log.owning_organisation.read_attribute_before_type_cast(:provider_type))
end
doc.write_xml_to(StringIO.new, encoding: "UTF-8")
end

1
spec/fixtures/exports/case_logs.xml vendored

@ -174,5 +174,6 @@
<relat7/>
<relat8/>
<rent_value_check/>
<providertype>1</providertype>
</form>
</forms>

Loading…
Cancel
Save