diff --git a/app/services/bulk_upload/lettings/row_parser.rb b/app/services/bulk_upload/lettings/row_parser.rb index c36828c3b..08f76593f 100644 --- a/app/services/bulk_upload/lettings/row_parser.rb +++ b/app/services/bulk_upload/lettings/row_parser.rb @@ -321,6 +321,7 @@ private period: %i[field_79], brent: %i[field_80], + supcharg: %i[field_83], tcharge: %i[field_84], chcharge: %i[field_85], household_charge: %i[field_86], @@ -514,6 +515,7 @@ private attributes["period"] = field_79 attributes["brent"] = field_80 + attributes["supcharg"] = field_83 attributes["tcharge"] = field_84 attributes["chcharge"] = field_85 attributes["household_charge"] = field_86 diff --git a/spec/services/bulk_upload/lettings/row_parser_spec.rb b/spec/services/bulk_upload/lettings/row_parser_spec.rb index dbe298da7..eb55c6f64 100644 --- a/spec/services/bulk_upload/lettings/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/row_parser_spec.rb @@ -597,5 +597,13 @@ RSpec.describe BulkUpload::Lettings::RowParser do expect(parser.log.tcharge).to eq(123.45) end end + + describe "#supcharg" do + let(:attributes) { { bulk_upload:, field_83: "123.45" } } + + it "sets value given" do + expect(parser.log.supcharg).to eq(123.45) + end + end end end