From 491652dc12e8904f9c16e178f5f5f93fe8116168 Mon Sep 17 00:00:00 2001 From: Nat Dean-Lewis Date: Tue, 17 Mar 2026 09:53:01 +0000 Subject: [PATCH] CLDC-4263: fix "no" mapping and allow decimal mscharge --- app/services/bulk_upload/sales/year2026/row_parser.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/services/bulk_upload/sales/year2026/row_parser.rb b/app/services/bulk_upload/sales/year2026/row_parser.rb index 51d65ea8e..31c6f6a3e 100644 --- a/app/services/bulk_upload/sales/year2026/row_parser.rb +++ b/app/services/bulk_upload/sales/year2026/row_parser.rb @@ -315,7 +315,7 @@ class BulkUpload::Sales::Year2026::RowParser attribute :field_122, :integer attribute :field_123, :decimal attribute :field_124, :decimal - attribute :field_125, :integer + attribute :field_125, :decimal attribute :field_126, :decimal attribute :field_127, :integer @@ -949,7 +949,7 @@ private attributes["gender_description6"] = field_69 attributes["newservicecharges"] = field_126 if field_126&.positive? - attributes["hasservicechargeschanged"] = attributes["newservicecharges"].present? ? 1 : 0 + attributes["hasservicechargeschanged"] = attributes["newservicecharges"].present? ? 1 : 2 attributes["relat2"] = relationship_from_is_partner(field_37) attributes["relat3"] = relationship_from_is_partner(field_47) @@ -1336,7 +1336,7 @@ private return [:field_136] if discounted_ownership? return [:field_125] if staircasing? - %i[field_107 field_136] + %i[field_107 field_136 field_125] end def mortlen_fields