[% PROCESS elements.html # Include form elements helper. -%] [% login.type = 'hidden' ; PROCESS input element_data=login -%] [% accountclass.type = 'hidden'; PROCESS input element_data=accountclass -%] [% # The first_load field is required on payment2.html to initialize discounts the first time, on each subsequent update it wont exist-%] [% PROCESS input element_data={ name => 'first_load', id => 'first_load', type => 'hidden', value => 'on'} %] [% type.type = "hidden"; PROCESS input element_data=type; -%]

[% IF (type.value == 'receipt') -%] [% text('Receipts') %] [% ELSE; text('Payments') -%] [% END -%]

[% text('Departments') %] | [% PROCESS select element_data={ options=departments default_blank=1 text_attr='description' value_attr='id' } %]
[% IF (type.value == 'receipt') -%] [% text('Customer Name') -%] [% ELSE; text('Vendor Name') -%] [% END -%] | [% PROCESS input element_data = { id="vc_name" name="vc_name" } %] | [% text('SSN')%] | [% PROCESS input element_data = { id="vc_ssn" name="vc_ssn" size=10 } %]
[% text('Currency') %] | [% PROCESS select element_data=curr %]
[% text('Date from') %] >= | [% datefrom.type = "text"; datefrom.size = "10" ; datefrom.maxlenght = "10" ; datefrom.class = 'date'; datefrom.name = "datefrom"; PROCESS input element_data=datefrom; -%] | [% text('Date to') %] <= | [% dateto.type = "text"; dateto.size = "10" ; dateto.maxlenght = "10" ; dateto.class = 'date'; dateto.name = "dateto"; PROCESS input element_data=dateto; -%]
[% text('Total') %] >= | [% amountfrom.type = "text"; amountfrom.size = "10" ; amountfrom.maxlenght = "10" ; PROCESS input element_data=amountfrom; %] | [% text('Total') %] <= | [% amountto.type = "text"; amountto.size = "10" ; amountto.maxlenght = "10" ; PROCESS input element_data=amountto; %]

[% PROCESS button element_data=action %]