]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/pay_posting_import/form.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / pay_posting_import / form.html
1 [% USE HTML %]
2 [% USE LxERP %]
3 [% USE L %]
4 [% USE T8 %]
5 [% INCLUDE 'common/flash.html' %]
6
7 <h1>[% FORM.title %]</h1>
8
9 <div class="wrapper">
10
11 [% IF (SELF.gl_trans.size) %]
12  <table class="tbl-list" id="gl_trans">
13   <caption>[% SELF.gl_trans.size %]&nbsp;[% "entries imported" | $T8 %].</caption>
14   <thead>
15    <tr>
16     <th>[%- LxERP.t8("Date") %]</th>
17     <th>[%- LxERP.t8("Description") %]</th>
18     <th>[%- LxERP.t8("Debit") %]</th>
19     <th>[%- LxERP.t8("Credit") %]</th>
20     <th>[%- LxERP.t8("Amount") %]</th>
21    </tr>
22   </thead>
23   <tbody>
24   [%- FOREACH gl = SELF.gl_trans %]
25     <tr>
26     <td>[%- gl.transdate.to_kivitendo -%]</td>
27     <td>[%- gl.description -%]</td>
28     <td>[%- gl.transactions.1.chart.accno -%]&nbsp;[%- gl.transactions.1.chart.description -%]</td>
29     <td>[%- gl.transactions.0.chart.accno -%]&nbsp;[%- gl.transactions.0.chart.description -%]</td>
30     <td class="numeric"> [%- LxERP.format_amount(gl.transactions.0.amount    , 2) %]</td>
31    </tr>
32   [% END %]
33   </tbody>
34  </table>
35 [% END %]
36 <form method="post" action="controller.pl" enctype="multipart/form-data" id="form">
37 <table class="tbl-horizontal">
38   <caption>[% "Import a File" | $T8 %]</caption>
39   <colgroup>
40     <col class="wi-normal">
41     <col class="wi-lightwide">
42   </colgroup>
43   <tbody>
44     <tr>
45       <th>[% LxERP.t8("CSV File") %]</th>
46       <td>[% L.input_tag('file', '', type => 'file', accept => '.csv') %]</td>
47     </tr>
48     <tr>
49       <th><label for="set_closedto">[% LxERP.t8("Close Books up to") %]</label></th>
50       <td>[% L.checkbox_tag('set_closedto', value => 1, checked => 1, id => 'set_closedto') %]&nbsp;[% L.date_tag('closedto', closedto) %]</td>
51     </tr>
52   <tbody>
53 </table>
54 </form>
55
56 </div><!-- /.wrapper -->