[% PROCESS elements.html # Include form elements helper. -%] [% login.type = 'hidden' ; INCLUDE input element_data=login -%] [% account_class.type = 'hidden'; account_class.id = account_class.name; INCLUDE input element_data=account_class-%]

[% IF entities -%] [% IF account_class.value == 1 -%] [% text('Please select a vendor with unused overpayments') %] [% ELSE -%] [% text('Please select a customer with unused overpayments') %] [% END -%]
[% IF account_class.value == 1 -%] [% text('Vendor') -%] [% ELSE -%] [% text('Customer') -%] [% END %] [% PROCESS select element_data = { id="entity_credit_id" name="entity_credit_id" options=entities text_attr='name' } %]
[% text('Currency') %] [% PROCESS select element_data = { id="curr" name="curr" options=curr } %]

[% PROCESS button element_data=action %] [% ELSE -%] [% IF account_class.value == 1 -%] [% text('There is no vendor with overpayments') %] [% ELSE -%] [% text('There is no customer with overpayments') %] [% END -%] [% END -%]