adjust audit values

pull/381/head
Pete Matsyburka 1 year ago committed by Oleksandr Turchyn
parent e6c8203959
commit 35cce24539

@ -264,10 +264,10 @@ module Submissions
composer.table(info_rows, cell_style: { padding: [0, 0, 0, 0], border: { width: 0 } }) composer.table(info_rows, cell_style: { padding: [0, 0, 0, 0], border: { width: 0 } })
if with_audit_values
submission.template_fields.filter_map do |field| submission.template_fields.filter_map do |field|
next if field['submitter_uuid'] != submitter.uuid next if field['submitter_uuid'] != submitter.uuid
next if field['type'] == 'heading' next if field['type'] == 'heading'
next if !with_audit_values && !field['type'].in?(%w[signature initials])
submitter_field_counters[field['type']] += 1 submitter_field_counters[field['type']] += 1
@ -351,7 +351,6 @@ module Submissions
end end
composer.draw_box(divider) composer.draw_box(divider)
end
composer.text(I18n.t('event_log'), font_size: 12, padding: [10, 0, 20, 0]) composer.text(I18n.t('event_log'), font_size: 12, padding: [10, 0, 20, 0])

Loading…
Cancel
Save