Browse Source

handle staircasesale for sales bulk upload 2023

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

@ -772,6 +772,8 @@ private
attributes["prevshared"] = field_85
attributes["staircasesale"] = field_90
attributes
end

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

@ -683,5 +683,13 @@ RSpec.describe BulkUpload::Sales::Year2023::RowParser do
expect(parser.log.prevshared).to be(3)
end
end
describe "#staircasesale" do
let(:attributes) { setup_section_params.merge({ field_90: "1" }) }
it "is correctly set" do
expect(parser.log.staircasesale).to be(1)
end
end
end
end

Loading…
Cancel
Save