[% PROCESS 'elements.html'; PROCESS 'report_base.html'; %]
[% PROCESS input element_data = { name = 'pnl_type', type = 'hidden', value = pnl_type }; %]
[% text('Income Statement') %]
[% text('Report type') %]
[% text('Valuation') %]
[% PROCESS input element_data={ name = 'basis', type = 'radio', value = 'accrual', label = text('Accrual'), checked = 'checked', } label_pos = 1 ; %]
[% PROCESS input element_data={ name = 'basis', type = 'radio', value = 'cash', label = text('Cash'), } label_pos = 1 ; %]
[% IF gifi_list.size > 0 -%]
[% text('GIFI') %]
[% PROCESS input element_data = { label = text('Regular') name = 'gifi' value = 0 type = 'radio' checked = 'checked' } label_pos = 1 ; %]
[% PROCESS input element_data = { label = text('GIFI') name = 'gifi' value = 1 type = 'radio' } label_pos = 1 ; %]
[% END -%]
[% text('Period selection') %]
[% text('Select using') %]
[% IF comparison_type == 'by_periods'; YES="CHECKED"; NO=undef; ELSE; NO="CHECKED"; YES=undef; END; -%]
[% PROCESS input element_data={ type = 'radio', name = 'comparison_type', id = 'comparison_by_dates', value = 'by_dates', label = text('Dates'), checked = NO } label_pos = 1 ; %]
[% PROCESS input element_data={ type = 'radio', name = 'comparison_type', id = 'comparison_by_periods', value = 'by_periods', label = text('Periods'), checked = YES, } label_pos = 1 ; %]
[% label_pos = -1; # apparently, there's something leaky PROCESS input element_data = { label=text('From') class="date" name="from_date" id="from_date" size="11" title=datestyle } %]
[% label_pos = -1; # apparently, there's something leaky PROCESS input element_data = { label=text('To') class="date" name="to_date" id="to_date" size="11" title=datestyle } %]
[% PROCESS date_period_div; %]
[% PROCESS input element_data = { label = text('Comparison Periods') name = 'comparison_periods' value = 0 size = '3' "data-dojo-type" = "dijit/form/NumberSpinner" "data-dojo-props" = "intermediateChanges:true, constraints:{min:0, max:13, places:0}, smallDelta:1, style:'width:7ex'" }; %]
[% FOREACH c IN [1 .. 13]; %]
[% PROCESS input element_data = { label=text('From') class="date" name="from_date_" _ c id="from_date_" _ c size="11" title=datestyle } %] [% PROCESS input element_data = { label=text('To') class="date" name="to_date_" _ c id="to_date_" _ c size="11" title=datestyle } %]
[% END %]
Report options
[% PROCESS input element_data = { label = text('Account numbers') #' name = 'incl_accnos' type = 'checkbox' value = 1 checked = 'checked' # checked by default }; %]
[% text('Hierarchy type') %]
[% HIERARCHY_SETUP = earn_id; IF HIERARCHY_SETUP; full_checked = 'CHECKED'; full_disabled = undef; legacy_checked = undef; ELSE; full_disabled = 'DISABLED'; full_checked = undef; legacy_checked = 'CHECKED'; END; %]
[% PROCESS input element_data = { label = text('Full') type = 'radio' name = 'legacy_hierarchy' value = 0 id = 'legacy-hierarchy-0' checked = full_checked disabled = full_disabled } label_pos = 1; %] [% IF full_disabled %] [% text('Not set up for hierarchy reporting, please see linked instructions') %] [% END %]
[% PROCESS input element_data = { label = text('Account category') type = 'radio' name = 'legacy_hierarchy' value = 1 id = 'legacy-hierarchy-1' checked = legacy_checked } label_pos = 1; %]
[% PROCESS select_language element_data = { label = text('Language') name = 'language' options = languages text_attr = 'description' value_attr = 'code' default_values = [USER.language] } %]
[% IF bu_classes.size > 0; %]
[% text('Reporting unit filters') %] [% PROCESS business_classes_div; %]
[% END %] [% PROCESS button element_data = { text = text('Continue') name = '__action' value = 'generate_income_statement' type = 'submit' class = 'submit' } %]