Browse Source

add bulk upload sales 23 nationalbuy2 field

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

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

@ -754,6 +754,7 @@ private
attributes["ethnic_group2"] = infer_buyer2_ethnic_group_from_ethnic
attributes["ethnicbuy2"] = field_40
attributes["nationalbuy2"] = field_41
attributes
end

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

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

Loading…
Cancel
Save