[%- USE HTML %] [%- USE T8 %] [%- USE L %] [%- USE LxERP %]

[% title | html %]

[%- INCLUDE 'common/flash.html' %] [% IF carry_over_chart AND profit_chart AND loss_chart %] [% THEN %]
[% 'Year-end date' | $T8 %] [% L.date_tag('cb_date', SELF.cb_date) %]
[% 'Startdate method' | $T8 %] [% L.select_tag('balance_startdate_method', balance_startdate_method_options, value_key = 'value', title_key = 'title') %]
[% 'Start date' | $T8 %] [% L.date_tag('cb_startdate', '', readonly=1) %]
[% 'Carry over account for year-end closing' | $T8 %] [% carry_over_chart.displayable_name | html %]
[% 'Profit carried forward account' | $T8 %] [% profit_chart.displayable_name | html %]
[% 'Loss carried forward account' | $T8 %] [% loss_chart.displayable_name | html %]
[% ELSE %] [% 'Please configure the carry over and profit and loss accounts for year-end closing in the client configuration!' | $T8 %] [% END %] [% # L.button_tag("refresh_charts();", LxERP.t8("Preview")) %] [% L.button_tag("year_end_bookings();", LxERP.t8("Apply year-end bookings"), id='apply_year_end_bookings_button', confirm=LxERP.t8("Are you sure?")) %]