[% PROCESS elements.html; PROCESS report_base.html %]

[% text('Aging Report') %]
[% INCLUDE business_classes %]
[% IF entity_class == 1; text('Vendor'); ELSIF entity_class == 2; text('Customer'); END %] | [% PROCESS input element_data={ name = 'name_part' type = 'text' class = 'name' value = name } %]
[% text('Account') %] | [% PROCESS input element_data={ name = 'meta_number' type = 'text' class = 'control_code' value = meta_number } %]
[% text('To') %] | [% PROCESS input element_data={ class = 'date', name = 'to_date', size = '11', } %]
| [% IF form.selectaccountingyear.defined %] [% PROCESS select element_data=form.selectaccountingmonth -%] [% PROCESS select element_data=form.selectaccountingyear -%] [% END %]
| [% PROCESS input element_data={ type = 'radio', name = 'report_type', value = 'summary', label = text('Summary'), checked = 'checked', } -%] [% PROCESS input element_data={ type = 'radio', name = 'report_type', value = 'detail', label = text('Detail'), } -%]
[% text('Include in Report') %] |
[% PROCESS input element_data={ name = 'overdue', type = 'radio', value = '0', label = text('Aged'), checked = 'checked', } -%] | [% PROCESS input element_data={ name = 'overdue', type = 'radio', value = '1', label = text('Overdue'), } -%]
[% PROCESS input element_data={ name = 'c0', type = 'checkbox', value = '1', label = text('Current'), checked = 'checked', } -%] | [% PROCESS input element_data={ name = 'c30', type = 'checkbox', value = '1', label = '30', checked = 'checked', } -%] | [% PROCESS input element_data={ name = 'c60', type = 'checkbox', value = '1', label = '60', checked = 'checked', } -%] | [% PROCESS input element_data={ name = 'c90', type = 'checkbox', value = '1', label = '90', checked = 'checked', } -%] [% PROCESS input element_data = { name = 'entity_class' type = 'hidden' value = entity_class } %]

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