From 2167adff08014a17bd929d9d4cf319feb3c0ac0a Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Mon, 15 May 2023 15:21:51 +0100 Subject: [PATCH] feat: add uprn to error mapping --- app/services/bulk_upload/sales/year2023/row_parser.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/services/bulk_upload/sales/year2023/row_parser.rb b/app/services/bulk_upload/sales/year2023/row_parser.rb index 67cf9a284..670db0134 100644 --- a/app/services/bulk_upload/sales/year2023/row_parser.rb +++ b/app/services/bulk_upload/sales/year2023/row_parser.rb @@ -607,6 +607,7 @@ private beds: %i[field_16], proptype: %i[field_17], builtype: %i[field_18], + uprn: %i[field_19], la_known: %i[field_26], la: %i[field_26], @@ -754,7 +755,7 @@ private attributes["proptype"] = field_17 attributes["builtype"] = field_18 attributes["la_known"] = field_26.present? ? 1 : 0 - attributes["la"] = field_24 + attributes["la"] = field_26 attributes["is_la_inferred"] = false attributes["pcodenk"] = 0 if postcode_full.present? attributes["postcode_full"] = postcode_full