[% PROCESS elements.html %]
[% FOREACH closing IN eoy.closing_dates -%] [% END %]
Period closing dates
Post year closing
[% FOREACH opt = eoy.earnings_accounts; opt.text = opt.accno _ '--' _ opt.description; END -%]
[% PROCESS input element_data={ class = 'date', name = 'end_date', size = 11, title = user.dateformat, } -%]
[% PROCESS input element_data={ name = 'reference', size = 20, value = text('Yearend'), } -%]
[% PROCESS textarea element_data={ name = 'description', rows = 3, cols = 50, } -%]
[% PROCESS select element_data={ name = "retention_acc_id" options = eoy.earnings_accounts value_attr = "id" } -%] [% FOREACH hidden IN eoy.hiddens.keys; PROCESS input element_data={ type = 'hidden', name = hidden, value = hiddens.item(hidden) }; END %] [% PROCESS button element_data = { name = "__action" type = "submit" class = "submit" value = "post_yearend" text = text('Post Yearend') #' } %]
Date Is Year-end
[% PROCESS input element_data={ class = 'date', name = 'period_close_date', size = 11, title = 'Close As-Of' } -%] no [% PROCESS button element_data={ name = '__action' value = 'close_period' text = 'Close Period' title = 'Close only, no year-end' } %]
[% closing.end_date %] [% IF closing.is_yearend %]yes[% ELSE %]no[% END %] [% IF loop.first; PROCESS input element_data = { name = 'reopen_date' value = closing.end_date type = 'hidden' }; PROCESS button element_data = { text = "Re-open Period" value = 'reopen_books' name = '__action' id = '__action-' _ loop.count }; END %]