Browse Source

map tshortfall value (#543)

pull/619/head
kosiakkatrina 3 years ago committed by baarkerlounger
parent
commit
df3b8371ef
  1. 1
      app/services/imports/case_logs_import_service.rb
  2. 4
      spec/fixtures/softwire_imports/case_logs/0ead17cb-1668-442d-898c-0d52879ff592.xml

1
app/services/imports/case_logs_import_service.rb

@ -125,6 +125,7 @@ module Imports
attributes["tcharge"] = safe_string_as_decimal(xml_doc, "Q18av") attributes["tcharge"] = safe_string_as_decimal(xml_doc, "Q18av")
attributes["hbrentshortfall"] = unsafe_string_as_integer(xml_doc, "Q18d") attributes["hbrentshortfall"] = unsafe_string_as_integer(xml_doc, "Q18d")
attributes["tshortfall"] = safe_string_as_decimal(xml_doc, "Q18dyes")
attributes["voiddate"] = compose_date(xml_doc, "VDAY", "VMONTH", "VYEAR") attributes["voiddate"] = compose_date(xml_doc, "VDAY", "VMONTH", "VYEAR")
attributes["mrcdate"] = compose_date(xml_doc, "MRCDAY", "MRCMONTH", "MRCYEAR") attributes["mrcdate"] = compose_date(xml_doc, "MRCDAY", "MRCMONTH", "MRCYEAR")

4
spec/fixtures/softwire_imports/case_logs/0ead17cb-1668-442d-898c-0d52879ff592.xml vendored

@ -165,8 +165,8 @@
<Q18aiii override-field=""/> <Q18aiii override-field=""/>
<Q18aiv override-field=""/> <Q18aiv override-field=""/>
<Q18av override-field="">438.11</Q18av> <Q18av override-field="">438.11</Q18av>
<Q18d>2 No</Q18d> <Q18d>1 Yes</Q18d>
<Q18dyes override-field=""/> <Q18dyes override-field="">7.00</Q18dyes>
<Q19void>2021-09-30</Q19void> <Q19void>2021-09-30</Q19void>
<Q19repair/> <Q19repair/>
<Q20 override-field="">0</Q20> <Q20 override-field="">0</Q20>

Loading…
Cancel
Save