From 8e8998285c0d9c11ea357879a03ec0d046adce43 Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 7 Mar 2023 10:55:07 +0000 Subject: [PATCH] Look at the correct previuos postcode field --- app/services/imports/sales_logs_import_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/imports/sales_logs_import_service.rb b/app/services/imports/sales_logs_import_service.rb index 69f81af35..91cde4e97 100644 --- a/app/services/imports/sales_logs_import_service.rb +++ b/app/services/imports/sales_logs_import_service.rb @@ -210,7 +210,7 @@ module Imports def reset_postcode_known(attributes) attributes["pcodenk"] = attributes["postcode_full"].present? ? 0 : nil - attributes["ppcodenk"] = attributes["postcode_full"].present? ? 0 : nil + attributes["ppcodenk"] = attributes["ppostcode_full"].present? ? 0 : nil end def compute_differences(sales_log, attributes)