[% PROCESS 'elements.html'; PROCESS 'report_base.html'; IF ! entity_class.defined; entity_class = account_class; END %]
[% IF account_class == 2; CONTACT = "Customer Number"; TITLE = text('Search Receipts'); #' ELSIF account_class == 1; CONTACT = "Vendor Number"; TITLE = text('Search Payments'); #' ELSE %][% TITLE = "Unsupported" -%] [% END # if account_class -%] [% INCLUDE input element_data = { type = "hidden" name = "batch_id" value = batch_id } %] [% INCLUDE input element_data = { type = "hidden" name = "entity_class" value = entity_class } %] [% INCLUDE input element_data = { type = "hidden" name = "account_class" value = account_class } %]
[% TITLE %]
[% CONTACT %]
[% INCLUDE input element_data = { name = "meta_number" value = meta_number class = "text" type = "text" size = "20" } %]
[% text('Cash Account') %]
[% INCLUDE select element_data = { name = "cash_accno" options = cash_accounts default_values = [cash_accno] default_blank = (not batch_id) class = "account" value_attr = "accno" } %]
[% text('Source') %]
[% INCLUDE input element_data = { name = "source" value = source class = "text" type = "text" size = "20" } %]
[% PROCESS date_row_div %] [% IF batch_id %]
[% text('Payment Reversal Information') %]
[% INCLUDE input element_data = { type = "hidden" value = batch_date name = "date_reversed" } %] [% text('Date Reversed') %] [% batch_date %]
[% currency_list = []; FOREACH c IN currencies; currency_list.push( { text = c, value = c } ); END; %]
[% INCLUDE select element_data = { name = 'currency' options = currency_list value_attr = id default_values = [default_currency] label = text('Currency') } %] [% INCLUDE input element_data = { label = text('Exchange Rate') #' type = 'text' size = 10 name = 'exchangerate' value = exchangerate class = 'fxrate' } %]
[% END # if batch_id -%]
[% INCLUDE button element_data = { name = "__action" type = "submit" class = "submit" value = "get_search_results" text = text('Search') } %]