Browse Source

handle buy2living for bulk upload sales 2023

pull/1603/head
Phil Lee 2 years ago
parent
commit
f440108bff
  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

@ -756,6 +756,8 @@ private
attributes["ethnicbuy2"] = field_40
attributes["nationalbuy2"] = field_41
attributes["buy2living"] = field_71
attributes
end

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

@ -651,5 +651,13 @@ RSpec.describe BulkUpload::Sales::Year2023::RowParser do
expect(parser.log.nationalbuy2).to be(18)
end
end
describe "#buy2living" do
let(:attributes) { setup_section_params.merge({ field_71: "1" }) }
it "is correctly set" do
expect(parser.log.buy2living).to be(1)
end
end
end
end

Loading…
Cancel
Save