|
|
|
@ -242,11 +242,9 @@ module Csv
|
|
|
|
|
ordered_questions = FormHandler.instance.ordered_questions_for_year(@year, "sales") |
|
|
|
|
ordered_questions.reject! { |q| q.id.match?(/((?<!la)_known)|(_check)|(_asked)|nationality_all_group|nationality_all_buyer2_group/) } |
|
|
|
|
ordered_questions.reject! { |q| q.id.match?(/organisation_id|created_by|assigned_to|soctenant|has_management_fee|management_fee|grant|discount|has_mscharge|mscharge|extrabor/) } if @year >= 2025 |
|
|
|
|
# binding.pry |
|
|
|
|
attributes = insert_checkbox_options(ordered_questions) |
|
|
|
|
final_attributes = insert_derived_and_related_attributes(non_question_fields + attributes) |
|
|
|
|
order_address_fields_for_support(final_attributes) |
|
|
|
|
# final_attributes = non_question_fields + attributes |
|
|
|
|
@user.support? ? final_attributes : final_attributes - SUPPORT_ONLY_ATTRIBUTES |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|