Browse Source

ensure new date field converted to ISO 8601 format (#1807)

pull/1810/head v0.3.44
Arthur Campbell 1 year ago committed by GitHub
parent
commit
d0801c723a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/services/exports/lettings_log_export_service.rb

1
app/services/exports/lettings_log_export_service.rb

@ -185,6 +185,7 @@ module Exports
attribute_hash["mrcdate"] = lettings_log.mrcdate&.iso8601
attribute_hash["startdate"] = lettings_log.startdate&.iso8601
attribute_hash["voiddate"] = lettings_log.voiddate&.iso8601
attribute_hash["discarded_at"] = lettings_log.discarded_at&.iso8601
attribute_hash["cbl"] = 2 if attribute_hash["cbl"]&.zero?
attribute_hash["cap"] = 2 if attribute_hash["cap"]&.zero?

Loading…
Cancel
Save