[% PROCESS "report_base.html"; PROCESS "elements.html"; IF entity_class == 1; TITLE = text('AP Outstanding'); #' NAME = text('Vendor'); META_NUMBER = text('Vendor Number'); #' ELSIF entity_class == 2; TITLE = text('AR Outstanding'); #' NAME = text('Customer'); META_NUMBER = text('Customer Number'); #' END; FOREACH T IN accounts; T.text = T.accno _ '--' _ T.description; END; accounts.unshift({}); FOREACH T IN tax_accounts; T.text = T.accno _ '--' _ T.description; END; tax_accounts.unshift({}); %]
[% PROCESS input element_data = { name = 'entity_class' value = entity_class type = 'hidden' } %]
[% TITLE %]
[% PROCESS employee_row SELECTNAME='employee_id' %] [% PROCESS business_classes %] [% label_pos = 1; PROCESS date_row %]
[% text('Account') %] [% PROCESS select element_data = { name = 'account_id', value_attr = 'id', text_attr = 'text', default_values = [account_id], class = 'account', options = accounts } %]
[% NAME %] [% PROCESS input element_data = { name = "entity_name" value = entity_name type = "text" size = "32" class = "name" } %]
[% META_NUMBER %] [% PROCESS input element_data = { name = "meta_number" value = meta_number type = 'text' size = 16 class = "control-code" } %]
[% text('Ship Via') %] [% PROCESS input element_data = { name = "ship_via" value = ship_via type = 'text' size = 32 class = "text" } %]
[% text('Invoice Status') %] [% PROCESS input element_data = { label = text('All') type = 'radio' name = 'on_hold' id = 'on_hold-all' value = '' checked = 'CHECKED' }; PROCESS input element_data = { label = text('Active') type = 'radio' name = 'on_hold' id = 'on_hold-active' value = '0' }; PROCESS input element_data = { label = text('On Hold') #' type = 'radio' name = 'on_hold' id = 'on_hold-hold' value = '1' }; %]
[% text('Include in Report') %]
 
[% PROCESS input element_data = { name = 'is_detailed' id = 'is_detailed-0' type = 'radio' value = '0' checked = 'CHECKED' label = text('Summary') } %] [% PROCESS input element_data = { name = 'is_detailed' id = 'is_detailed-1' type = 'radio' value = '1' label = text('Details') } %]
[% 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_invnumber' type = 'checkbox' value = '1' label = text('Invoice Number') #' checked = 'CHECKED' } %] [% PROCESS input element_data = { name = 'col_ordnumber' type = 'checkbox' value = '1' label = text('Order Number') #' } %] [% PROCESS input element_data = { name = 'col_ponumber' type = 'checkbox' value = '1' label = text('PO Number') #' } %]
[% PROCESS input element_data = { name = 'col_transdate' type = 'checkbox' value = '1' label = text('Invoice Date') #' checked = 'CHECKED' } %] [% PROCESS input element_data = { name = 'col_business_units' type = 'checkbox' value = '1' label = text('Business Units') #' } %] [% PROCESS input element_data = { name = 'col_entity_name' type = 'checkbox' value = '1' label = NAME checked = 'CHECKED' } %] [% PROCESS input element_data = { name = 'col_salesperson' type = 'checkbox' value = '1' label = text('Salesperson') } %] [% PROCESS input element_data = { name = 'col_manager' type = 'checkbox' value = '1' label = text('Manager') } %]
[% PROCESS input element_data = { name = 'col_netamount' type = 'checkbox' value = '1' label = text('Amount') checked = 'CHECKED' } %] [% PROCESS input element_data = { name = 'col_tax' type = 'checkbox' value = '1' label = text('Tax') checked = 'CHECKED' } %] [% PROCESS input element_data = { name = 'col_amount' type = 'checkbox' value = '1' label = text('Total') checked = 'CHECKED' } %] [% PROCESS input element_data = { name = 'col_curr' type = 'checkbox' value = '1' label = text('Currency') } %] [% PROCESS input element_data = { name = 'col_last_payment' type = 'checkbox' value = '1' label = text('Date Paid') #' } %]
[% PROCESS input element_data = { name = 'col_paid' type = 'checkbox' value = '1' label = text('Paid') checked = 'CHECKED' } %] [% PROCESS input element_data = { name = 'col_due_date' type = 'checkbox' value = '1' label = text('Due Date') #' } %] [% PROCESS input element_data = { name = 'col_due' type = 'checkbox' value = '1' label = text('Amount Due') #' checked = 'CHECKED' } %] [% PROCESS input element_data = { name = 'col_notes' type = 'checkbox' value = '1' label = text('Notes') } %] [% PROCESS input element_data = { name = 'col_till' type = 'checkbox' value = '1' label = text('Till') } %]
[% PROCESS input element_data = { name = 'col_shipping_point' type = 'checkbox' value = '1' label = text('Shipping Point') #' } %] [% PROCESS input element_data = { name = 'col_ship_via' type = 'checkbox' value = '1' label = text('Ship Via') #' } %]
[% PROCESS input element_data = { name = 'subtotal' type = 'checkbox' value = '1' label = text('Subtotal') } %]

[% PROCESS button element_data = { name = 'action' value = 'invoices_outstanding' type = 'submit' class = 'submit' text = text('Continue') } %]