[% PROCESS 'elements.html'; PROCESS 'report_base.html'; %]
[% text('List Overpayments') %]

[% PROCESS date_row %]
[% text('Control Code') %] | [% PROCESS input element_data = { name = 'control_code' type = 'text' size = '16' value = control_code class = 'control-code' } %]
[% IF account_class == 1; text('Vendor Number'); END; IF account_class == 2; text('Customer Number'); END; %] | [% PROCESS input element_data = { name = 'meta_number' type = 'text' size = '16' value = meta_number class = 'control-code' } %]
[% text('Name') %] | [% PROCESS input element_data = { name = 'name_part' type = 'text' size = '32' value = name_part class = 'name' } %]
[% text('Reversal Information') %]
[% text('Currency'); %] | [% PROCESS select element_data = { options = currencies name = 'currency' default_values = [currency] class = 'currency' }; %] | [% text('Exchange Rate'); %] | [% PROCESS input element_data = { }; %]

[% PROCESS button element_data = { name = '__action' value = "search_overpayments" type = 'submit' class = 'submit' text = text('Search') }; PROCESS input element_data = { name = "post_date" value = post_date type = 'hidden' }; PROCESS input element_data = { name = "account_class" value = account_class type = 'hidden' }; PROCESS input element_data = { name = "batch_id" value = batch_id type = 'hidden' } %]