Browse Source

Merge 2fe038c9f7 into e079455f65

pull/3333/merge
Samuel Young 5 days ago committed by GitHub
parent
commit
3443af32df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 9
      app/services/bulk_upload/sales/year2025/row_parser.rb
  2. 9
      app/services/bulk_upload/sales/year2026/row_parser.rb

9
app/services/bulk_upload/sales/year2025/row_parser.rb

@ -781,7 +781,7 @@ private
postcode_full: %i[field_21 field_22], postcode_full: %i[field_21 field_22],
wchair: %i[field_27], wchair: %i[field_27],
type: %i[field_9 field_11 field_8], type: sale_type_fields,
resale: %i[field_78], resale: %i[field_78],
hodate: %i[field_80 field_81 field_82], hodate: %i[field_80 field_81 field_82],
@ -1209,6 +1209,13 @@ private
field_109 if staircasing? field_109 if staircasing?
end end
def sale_type_fields
return %i[field_8 field_9] if shared_ownership?
return %i[field_8 field_11] if discounted_ownership?
%i[field_9 field_11 field_8]
end
def value_fields def value_fields
return [:field_86] if shared_ownership_initial_purchase? return [:field_86] if shared_ownership_initial_purchase?
return [:field_113] if discounted_ownership? return [:field_113] if discounted_ownership?

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

@ -836,7 +836,7 @@ private
postcode_full: %i[field_21 field_22], postcode_full: %i[field_21 field_22],
wchair: %i[field_28], wchair: %i[field_28],
type: %i[field_9 field_11 field_8], type: sale_type_fields,
resale: %i[field_91], resale: %i[field_91],
hodate: %i[field_93 field_94 field_95], hodate: %i[field_93 field_94 field_95],
@ -1342,6 +1342,13 @@ private
field_122 if staircasing? field_122 if staircasing?
end end
def sale_type_fields
return %i[field_8 field_9] if shared_ownership?
return %i[field_8 field_11] if discounted_ownership?
%i[field_9 field_11 field_8]
end
def value_fields def value_fields
return [:field_99] if shared_ownership_initial_purchase? return [:field_99] if shared_ownership_initial_purchase?
return [:field_128] if discounted_ownership? return [:field_128] if discounted_ownership?

Loading…
Cancel
Save