non prefillable types

This commit is contained in:
Pete Matsyburka committed 2026-09-26 16:00:28 +03:00
1 parent 2d6f4c521e
commit 5ef32bcf9e
1 file changed
+4
+4
View File
@@ -15,6 +15,8 @@ module Submitters
TRUE_VALUES = ['1', 'true', true, 'TRUE', 'True', 'yes', 'YES', 'Yes'].freeze
FALSE_VALUES = ['0', 'false', false, 'FALSE', 'False', 'no', 'NO', 'No'].freeze
NON_PREFILLABLE_FIELD_TYPES = %w[payment kba verification].freeze
module_function
# rubocop:disable Metrics
@@ -66,6 +68,8 @@ module Submitters
next if value_fields.blank?
value_fields.each do |field|
next if NON_PREFILLABLE_FIELD_TYPES.include?(field['type'])
if field['type'].in?(%w[initials signature image file stamp]) && value.present?
new_value, new_attachments =
normalize_attachment_value(value, field, template.account, attachments, for_submitter:, purpose:)