|
|
|
@ -338,6 +338,12 @@ class BulkUpload::Sales::Year2022::RowParser |
|
|
|
block_log_creation |
|
|
|
block_log_creation |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def log_already_exists? |
|
|
|
|
|
|
|
@log_already_exists ||= SalesLog |
|
|
|
|
|
|
|
.where(status: %w[not_started in_progress completed]) |
|
|
|
|
|
|
|
.exists?(duplicate_check_fields.index_with { |field| log.public_send(field) }) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
private |
|
|
|
private |
|
|
|
|
|
|
|
|
|
|
|
def buyer_not_interviewed? |
|
|
|
def buyer_not_interviewed? |
|
|
|
@ -857,12 +863,6 @@ private |
|
|
|
] |
|
|
|
] |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def log_already_exists? |
|
|
|
|
|
|
|
@log_already_exists ||= SalesLog |
|
|
|
|
|
|
|
.where(status: %w[not_started in_progress completed]) |
|
|
|
|
|
|
|
.exists?(duplicate_check_fields.index_with { |field| log.public_send(field) }) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def validate_owning_org_data_given |
|
|
|
def validate_owning_org_data_given |
|
|
|
if field_92.blank? |
|
|
|
if field_92.blank? |
|
|
|
block_log_creation! |
|
|
|
block_log_creation! |
|
|
|
|