]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/pay_posting_import/form.html
date error in mapping
[mfinanz.git] / templates / webpages / pay_posting_import / form.html
index f20f93334637fbcff21d723acbf21197ff156676..53de95b9ccb631aa0c3295ed6678a2f04421c1e5 100644 (file)
@@ -4,9 +4,39 @@
 [%- USE T8 %]
 [%- INCLUDE 'common/flash.html' %]
 <div class="listtop">[% FORM.title %]</div>
+
+[% IF (SELF.gl_trans.size) %]
+  <p>[% SELF.gl_trans.size %]&nbsp;[% "entries imported" | $T8 %].</p>
+<div style="padding-bottom: 15px">
+ <table id="gl_trans">
+  <thead>
+   <tr>
+    <th class="listheading">[%- LxERP.t8("Date") %]</th>
+    <th class="listheading">[%- LxERP.t8("Description") %]</th>
+    <th class="listheading">[%- LxERP.t8("Debit") %]</th>
+    <th class="listheading">[%- LxERP.t8("Credit") %]</th>
+    <th class="listheading">[%- LxERP.t8("Amount") %]</th>
+   </tr>
+  </thead>
+  <tbody>
+  [%- FOREACH gl = SELF.gl_trans %]
+    <tr class="listrow[% loop.count % 2 %]">
+    <td>[%- gl.transdate.to_kivitendo -%]</td>
+    <td align="left">[%- gl.description -%]</td>
+    <td align="left">[%- gl.transactions.1.chart.accno -%]&nbsp;[%- gl.transactions.1.chart.description -%]</td>
+    <td align="left">[%- gl.transactions.0.chart.accno -%]&nbsp;[%- gl.transactions.0.chart.description -%]</td>
+    <td align="right"> [%- LxERP.format_amount(gl.transactions.0.amount    , 2) %]</td>
+   </tr>
+  [% END %]
+     </tbody>
+ </table>
+ <div>
+[% END %]
 <p>
  [% "Import a File:" | $T8 %]
 </p>
 <form method="post" action="controller.pl" enctype="multipart/form-data" id="form">
   [% L.input_tag('file', '', type => 'file', accept => '.csv') %]
+  <p>[% L.checkbox_tag('set_closedto', value => 1, checked => 1, class => 'checkbox') %]  [% 'Close Books up to' | $T8 %]:</p>
+  [% L.date_tag('closedto', closedto) %]
 </form>