MT940-Import: Implementation eines eigenen Parsers anstelle von AQBanking
[kivitendo-erp.git] / templates / webpages / bank_import / import_mt940.html
1 [%- USE HTML %]
2 [%- USE LxERP %]
3 [%- USE L %]
4 [%- USE T8 %]
5
6 <h1>[% FORM.title %]</h1>
7
8 [% IF preview %]
9   <form method="post" action="controller.pl" enctype="multipart/form-data" id="form">
10     [% L.hidden_tag('file_name', SELF.file_name) %]
11   </form>
12 [% END %]
13
14 <h2>[% LxERP.t8("Overview") %]</h2>
15
16 <div>
17   <table>
18     <tr>
19       <td>[% LxERP.t8("Total number of entries") %]:</td>
20       <td align="right">[% SELF.statistics.total %]</td>
21     </tr>
22
23     <tr>
24       <td>[% LxERP.t8("Entries with errors") %]:</td>
25       <td align="right">[% SELF.statistics.errors %]</td>
26     </tr>
27
28     <tr>
29       <td>[% LxERP.t8("Already imported entries (duplicates)") %]:</td>
30       <td align="right">[% SELF.statistics.duplicates %]</td>
31     </tr>
32
33     <tr>
34 [% IF preview %]
35       <td>[% LxERP.t8("Entries ready to import") %]:</td>
36       <td align="right">[% SELF.statistics.to_import %]</td>
37 [% ELSE %]
38       <td>[% LxERP.t8("Imported entries") %]:</td>
39       <td align="right">[% SELF.statistics.imported %]</td>
40 [% END %]
41     </tr>
42   </table>
43 </div>
44
45 [% IF SELF.statistics.total %]
46
47 <h2>[% LxERP.t8("Transactions") %]</h2>
48
49 <table>
50   <thead>
51     <tr class="listheading">
52       <th>[% LxERP.t8("Transaction date") %]</th>
53       <th>[% LxERP.t8("Valutadate") %]</th>
54       <th>[% LxERP.t8("Other party") %]</th>
55       <th>[% LxERP.t8("Purpose") %]</th>
56       <th>[% LxERP.t8("Amount") %]</th>
57       <th>[% LxERP.t8("Remote account") %]</th>
58       <th>[% LxERP.t8("Local account") %]</th>
59       <th>[% LxERP.t8("Information") %]</th>
60     </tr>
61   </thead>
62
63   <tbody>
64     [% FOREACH transaction = SELF.transactions %]
65       <tr class="listrow[% IF transaction.error %]_error[% END %]">
66         <td align="right">[% transaction.transdate.to_kivitendo %]</td>
67         <td align="right">[% transaction.valutadate.to_kivitendo %]</td>
68         <td>[% HTML.escape(transaction.remote_name) %]</td>
69         <td>[% HTML.escape(transaction.purpose) %]</td>
70         <td align="right">[% LxERP.format_amount(transaction.amount, 2) %]</td>
71         <td>
72           [% IF transaction.remote_bank_code && transaction.remote_account_number %]
73             [% HTML.escape(transaction.remote_bank_code) %] / [% HTML.escape(transaction.remote_account_number) %]
74           [% END %]
75         </td>
76         <td>[% HTML.escape(transaction.bank_account.name) %]</td>
77         <td>
78           [% IF transaction.error %]
79             [% HTML.escape(transaction.error) %]
80           [% ELSIF transaction.duplicate %]
81             [% LxERP.t8("Duplicate") %]
82           [% ELSIF preview %]
83             [% LxERP.t8("To import") %]
84           [% ELSE %]
85             [% LxERP.t8("Imported") %]
86           [% END %]
87         </td>
88       </tr>
89     [% END %]
90   </tbody>
91 </table>
92
93 [% END %]