[% USE HTML %] [% USE LxERP %] [% USE L %] [% USE T8 %] [% INCLUDE 'common/flash.html' %]

[% FORM.title %]

[% IF (SELF.gl_trans.size) %] [%- FOREACH gl = SELF.gl_trans %] [% END %]
[% SELF.gl_trans.size %] [% "entries imported" | $T8 %].
[%- LxERP.t8("Date") %] [%- LxERP.t8("Description") %] [%- LxERP.t8("Debit") %] [%- LxERP.t8("Credit") %] [%- LxERP.t8("Amount") %]
[%- gl.transdate.to_kivitendo -%] [%- gl.description -%] [%- gl.transactions.1.chart.accno -%] [%- gl.transactions.1.chart.description -%] [%- gl.transactions.0.chart.accno -%] [%- gl.transactions.0.chart.description -%] [%- LxERP.format_amount(gl.transactions.0.amount , 2) %]
[% END %]
[% "Import a File" | $T8 %]
[% LxERP.t8("CSV File") %] [% L.input_tag('file', '', type => 'file', accept => '.csv') %]
[% L.checkbox_tag('set_closedto', value => 1, checked => 1, id => 'set_closedto') %] [% L.date_tag('closedto', closedto) %]