Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / bank_transactions / _problems.html
1 [%- USE LxERP -%][%- USE T8 -%][%- USE HTML -%][%- USE P -%]
2 <h3>
3  [% LxERP.t8("Warnings and errors") %]
4 </h3>
5
6 <p>
7  [% LxERP.t8("Bank transactions with errors have not been posted.") %]
8  [% LxERP.t8("Bank transactions that either only have warnings or no message at all have been posted.") %]
9 </p>
10
11 <table>
12  <thead>
13   <tr class="listheading">
14    <th>[% LxERP.t8("Type") %]</th>
15    <th>[% LxERP.t8("Invoices") %]</th>
16    <th>[% LxERP.t8("Transdate") %]</th>
17    <th>[% LxERP.t8("Amount") %]</th>
18    <th>[% LxERP.t8("Remote name") %]</th>
19    <th>[% LxERP.t8("Purpose") %]</th>
20    <th>[% LxERP.t8("Remote account number") %]</th>
21    <th>[% LxERP.t8("Remote bank code") %]</th>
22    <th>[% LxERP.t8("Message") %]</th>
23   </tr>
24  </thead>
25
26  <tbody>
27   [% FOREACH problem = SELF.problems %]
28    <tr class="listrow[% IF problem.result == 'error' %]_error[% END %]">
29     <td>[% IF problem.result == 'error' %][% LxERP.t8("Error") %][% ELSE %][% LxERP.t8("Warning") %][% END %]</td>
30     <td>
31      [% FOREACH invoice = problem.invoices %]
32       [% invoice.presenter.invoice %]
33       [% UNLESS loop.last %]<br>[% END %]
34      [% END %]
35     </td>
36     <td>[% HTML.escape(problem.bank_transaction.transdate.to_kivitendo) %]</td>
37     <td>[% HTML.escape(LxERP.format_amount(problem.bank_transaction.amount, 2)) %]</td>
38     <td>[% HTML.escape(problem.bank_transaction.remote_name) %]</td>
39     <td>[% HTML.escape(problem.bank_transaction.purpose) %]</td>
40     <td>[% HTML.escape(problem.bank_transaction.remote_account_number) %]</td>
41     <td>[% HTML.escape(problem.bank_transaction.remote_bank_code) %]</td>
42     <td>[% HTML.escape(problem.message) %]</td>
43    </tr>
44   [% END %]
45  </tbody>
46 </table>