Browse Source

CLDC-4175: row parser field renumbering

pull/3200/head
Nat Dean-Lewis 3 weeks ago
parent
commit
7a07a2f830
  1. 12
      app/services/bulk_upload/sales/year2026/row_parser.rb
  2. 1
      spec/services/bulk_upload/sales/year2026/row_parser_spec.rb

12
app/services/bulk_upload/sales/year2026/row_parser.rb

@ -1122,7 +1122,7 @@ private
def value
return field_86 if shared_ownership_initial_purchase?
return field_115 if discounted_ownership?
return field_113 if discounted_ownership?
field_107 if staircasing?
end
@ -1170,7 +1170,7 @@ private
def proplen
return field_79 if shared_ownership?
field_114 if discounted_ownership?
field_112 if discounted_ownership?
end
def mortgageused
@ -1182,10 +1182,10 @@ private
def value_fields
return [:field_86] if shared_ownership_initial_purchase?
return [:field_115] if discounted_ownership?
return [:field_113] if discounted_ownership?
return [:field_107] if staircasing?
%i[field_86 field_115 field_107]
%i[field_86 field_113 field_107]
end
def equity_fields
@ -1238,9 +1238,9 @@ private
def proplen_fields
return [:field_79] if shared_ownership?
return [:field_114] if discounted_ownership?
return [:field_112] if discounted_ownership?
%i[field_79 field_114]
%i[field_79 field_112]
end
def mortgageused_fields

1
spec/services/bulk_upload/sales/year2026/row_parser_spec.rb

@ -118,6 +118,7 @@ RSpec.describe BulkUpload::Sales::Year2026::RowParser do
field_125: "M",
field_126: "R",
field_127: "R",
field_128: "2",
}
end

Loading…
Cancel
Save