[% PROCESS 'elements.html'; PROCESS 'report_base.html'; %]
[% text('Balance Sheet') %]
[% text('Report type') %]
[% 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 ; %]
[% text('Date selection') %]
[% text('Select using') %]
[% IF comparison_type == 'by_periods'; YES="CHECKED"; NO=undef; ELSE; NO="CHECKED"; YES=undef; END; %]
[% label_pos = -1; # Something leaky again 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; PROCESS input element_data = { label = text('As per') #' name = 'to_date' value = to_date class = 'date' size = 12 }; %]
[% PROCESS date_period_div; %]
[% text('Ignore year-closing') %]
[% PROCESS select element_data = { options = [ { label="All", id="all", }, { label="Last", id="last" }, { label="None", id="none", } ], default_values = [report.ignore_yearend], name = 'ignore_yearend', text_attr = 'label', value_attr = 'id', } %]
[% PROCESS input element_data = { label = text('Comparison Dates') name = 'comparison_periods' value = 0 size = '3' "data-dojo-type"="dijit/form/NumberSpinner" "data-dojo-props"="constraints:{min:0,max:9,places:0},intermediateChanges:true,style:'width:7ex'" }; %]
[% FOREACH c IN [1 .. 9]; %]
[% END %]
Report options
[% label_pos = -1; # Something leaks label_pos... 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] } %]
[% PROCESS button element_data = { text = text('Continue') name = 'action' value = 'generate_balance_sheet' type = 'submit' class = 'submit' } %]