[% PROCESS 'report_base.html'; PROCESS 'elements.html'; IF entity_class == 1; CV = text('Vendor'); ECA = text('Vendor Name'); #' ELSE; CV = text('Customer'); ECA = text('Customer Name'); #' END; %]
[% title %]

[% ECA %] | [% PROCESS input element_data = { name = 'legal_name' type = 'text' class = "name" value = legal_name size = 32 } %]
[% text('Account') %] | [% PROCESS input element_data = { name = 'meta_number' size = 16 class = 'control-code' type = 'text' value = meta_number } %]
[% IF oe_class_id == 1 OR oe_class_id == 2 %]
[% text('Order Number') %] | [% PROCESS input element_data = { name = 'ordnumber' size = 16 class = 'control-code' type = 'text' value = ordnumber } %]
[% ELSE %]
[% text('Quote Number') %] | [% PROCESS input element_data = { name = 'ordnumber' size = 16 class = 'control-code' type = 'text' value = ordnumber } %]
[% END %]
[% text('PO Number') %] | [% PROCESS input element_data = { name = 'ponumber' size = 16 class = 'control-code' type = 'text' value = ponumber } %]
[% text('Ship Via') %] | [% PROCESS input element_data = { name = 'shipvia' size = 32 class = 'info' type = 'text' value = shipvia } %]
[% text('Description') %] | [% PROCESS input element_data = { name = 'description' size = 32 class = 'description' type = 'text' value = description } %]
[% PROCESS date_row; label_pos = 1 %]
[% text('Include in Report') %]
| [% IF !open %]
[% PROCESS input element_data = { name = 'oc_state' type = 'radio' checked = 'CHECKED' value = 'open' label = text('Open') } %] | [% PROCESS input element_data = { name = 'oc_state' type = 'radio' value = 'closed' label = text('Closed') } %] | [% PROCESS input element_data = { name = 'oc_state' type = 'radio' value = 'all' label = text('All') } %]
[% END %]
[% PROCESS input element_data = { name = 'col_running_number' type = 'checkbox' value = '1' label = text('No.') } %] | [% PROCESS input element_data = { name = 'col_id' type = 'checkbox' value = '1' label = text('ID') } %] | [% PROCESS input element_data = { name = 'col_ordnumber' type = 'checkbox' checked = 'CHECKED' value = '1' label = text('Order Number') #' } %] | [% PROCESS input element_data = { name = 'col_transdate' type = 'checkbox' value = '1' label = text('Date') } %] | [% PROCESS input element_data = { name = 'col_ponumber' type = 'checkbox' checked = 'CHECKED' value = '1' label = text('PO Number') #' } %]
[% PROCESS input element_data = { name = 'col_reqdate' checked = 'CHECKED' type = 'checkbox' value = '1' label = text('Required By') #' } %] | [% PROCESS input element_data = { name = 'col_legal_name' type = 'checkbox' checked = 'CHECKED' value = '1' label = CV } %] | [% PROCESS input element_data = { name = 'col_meta_number' type = 'checkbox' checked = 'CHECKED' value = '1' label = text('Account') } %] | [% PROCESS input element_data = { name = 'col_shipvia' type = 'checkbox' value = '1' label = text('Ship Via') #' } %] | [% PROCESS input element_data = { name = 'col_amount' type = 'checkbox' checked = 'CHECKED' value = '1' label = text('Amount') } %]
[% PROCESS input element_data = { name = 'col_tax' type = 'checkbox' value = '1' label = text('Tax') } %] | [% PROCESS input element_data = { name = 'col_curr' type = 'checkbox' checked = 'CHECKED' value = '1' label = text('Currency') } %]
[% PROCESS input element_data = { name = 'subtotal' type = 'checkbox' value = '1' label = text('Subtotal') } %]

[% PROCESS button element_data = { text = text('Continue') name = '__action' value = 'search' class = 'submit' type = 'submit' }; PROCESS input element_data = { type = 'hidden' name = 'search_type' value = search_type }; PROCESS input element_data = { type = 'hidden' name = 'oe_class_id' value = oe_class_id } %]