Browse Source

handle hhregresstill sales bulk upload 2023

pull/1603/head
Phil Lee 2 years ago
parent
commit
f163da863e
  1. 2
      app/services/bulk_upload/sales/year2023/row_parser.rb
  2. 8
      spec/services/bulk_upload/sales/year2023/row_parser_spec.rb

2
app/services/bulk_upload/sales/year2023/row_parser.rb

@ -768,6 +768,8 @@ private
attributes["buy2living"] = field_71
attributes["prevtenbuy2"] = prevtenbuy2
attributes["hhregresstill"] = field_74
attributes
end

8
spec/services/bulk_upload/sales/year2023/row_parser_spec.rb

@ -667,5 +667,13 @@ RSpec.describe BulkUpload::Sales::Year2023::RowParser do
expect(parser.log.prevtenbuy2).to be(0)
end
end
describe "#hhregresstill" do
let(:attributes) { setup_section_params.merge({ field_74: "4" }) }
it "is correctly set" do
expect(parser.log.hhregresstill).to be(4)
end
end
end
end

Loading…
Cancel
Save