Browse Source

Refactor

pull/1908/head
Kat 3 years ago
parent
commit
2b91e68d77
  1. 3
      app/services/imports/sales_logs_import_service.rb

3
app/services/imports/sales_logs_import_service.rb

@ -583,9 +583,8 @@ module Imports
def set_soctenant_fields?(attributes)
return false if attributes["ownershipsch"] != 1
return false if %w[socprevten frombeds fromprop].all? { |field| attributes[field].blank? } && collection_start_year_for_date(attributes["saledate"]) >= 2023
true
%w[socprevten frombeds fromprop].any? { |field| attributes[field].present? } || collection_start_year_for_date(attributes["saledate"]) < 2023
end
def set_default_values(attributes)

Loading…
Cancel
Save