Browse Source

Look at the correct previuos postcode field

pull/1385/head
Kat 3 years ago
parent
commit
8e8998285c
  1. 2
      app/services/imports/sales_logs_import_service.rb

2
app/services/imports/sales_logs_import_service.rb

@ -210,7 +210,7 @@ module Imports
def reset_postcode_known(attributes) def reset_postcode_known(attributes)
attributes["pcodenk"] = attributes["postcode_full"].present? ? 0 : nil 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 end
def compute_differences(sales_log, attributes) def compute_differences(sales_log, attributes)

Loading…
Cancel
Save