f75b1b7562aa249063c8a1c49ebc49ce192c6b2a
[kivitendo-erp.git] / templates / webpages / acctranscorrections / analyze_overview.html
1 [%- USE T8 %]
2 [% USE HTML %][% USE LxERP %]
3 <body>
4
5  <p><div class="listtop">[% title %]</div></p>
6
7  <p>[% 'kivitendo has found one or more problems in the general ledger.' | $T8 %]</p>
8
9  <p>
10   [% 'Period' | $T8 %]:
11   [%- IF transdate_from || transdate_to %]
12    [%- IF transdate_from %]
13    [% 'from (time)' | $T8 %] [% transdate_from %]
14    [%- END %]
15    [%- IF transdate_to %]
16    [% 'to (time)' | $T8 %] [% transdate_to %]
17    [%- END %]
18   [%- ELSE %]
19   [% 'all entries' | $T8 %]
20   [%- END %]
21  </p>
22
23  <p>
24   <table width="100%">
25    <tr>
26     <th class="listheading">[% 'Transaction' | $T8 %]</th>
27     <th class="listheading">[% 'Problem' | $T8 %]</th>
28     <th class="listheading">[% 'Solution' | $T8 %]</th>
29    </tr>
30
31    [%- FOREACH problem = PROBLEMS %]
32    <tr class="listrow[% loop.count % 2 %]">
33     <td valign="top">
34      [%- IF problem.type == 'ap_ar_wrong_taxkeys' %]
35       [%- IF problem.ap_problems.size %]
36        [% 'AP Transactions' | $T8 %]
37        [%- FOREACH ap = problem.ap_problems %]
38         [%- UNLESS loop.first %], [%- END %]
39         <a href="[% ap.link %]">[% HTML.escape(ap.data.reference) %]</a>
40        [%- END %]
41       [%- END %]
42
43       [%- IF problem.ar_problems.size %]
44        [%- IF problem.ap_problems.size %]; [%- END %]
45        [% 'AR Transactions' | $T8 %]
46        [%- FOREACH ar = problem.ar_problems %]
47         [%- UNLESS loop.first %], [%- END %]
48         <a href="[% ar.link %]">[% HTML.escape(ar.data.reference) %]</a>
49        [%- END %]
50       [%- END %]
51
52
53      [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %]
54       [%- IF problem.ar_problems.size %]
55        [% 'Sales invoices' | $T8 %]
56        [%- FOREACH subproblem = problem.ar_problems %]
57         [%- UNLESS loop.first %], [%- END %]
58         <a href="[% subproblem.link %]">[% HTML.escape(subproblem.data.reference) %]</a>
59        [%- END %]
60       [%- END %]
61
62       [%- IF problem.ap_problems.size %]
63        [%- IF problem.ar_problems.size %]; [%- END %]
64        [% 'Purchase invoices' | $T8 %]
65        [%- FOREACH subproblem = problem.ap_problems %]
66         [%- UNLESS loop.first %], [%- END %]
67         <a href="[% subproblem.link %]">[% HTML.escape(subproblem.data.reference) %]</a>
68        [%- END %]
69       [%- END %]
70
71      [%- ELSIF problem.type == 'missing_taxkeys_in_invoices' %]
72       [%- IF problem.ar_problems.size %]
73        [% 'Sales invoices' | $T8 %]
74        [%- FOREACH subproblem = problem.ar_problems %]
75         [%- UNLESS loop.first %], [%- END %]
76         <a href="[% subproblem.link %]">[% HTML.escape(subproblem.data.reference) %]</a>
77        [%- END %]
78       [%- END %]
79
80       [%- IF problem.ap_problems.size %]
81        [%- IF problem.ar_problems.size %]; [%- END %]
82        [% 'Purchase invoices' | $T8 %]
83        [%- FOREACH subproblem = problem.ap_problems %]
84         [%- UNLESS loop.first %], [%- END %]
85         <a href="[% subproblem.link %]">[% HTML.escape(subproblem.data.reference) %]</a>
86        [%- END %]
87       [%- END %]
88
89      [%- ELSE %]
90
91      <a href="[% problem.link %]">
92       [%- IF problem.data.module == 'ar' %]
93       [% 'AR Transaction' | $T8 %]
94       [%- ELSIF problem.data.module == 'ap' %]
95       [% 'AP Transaction' | $T8 %]
96       [%- ELSE %]
97       [% 'General Ledger Transaction' | $T8 %]
98       [%- END %]
99       [% HTML.escape(problem.data.reference) %]
100      </a>
101
102       <!-- ( [% problem.data.module %].id = acc_trans.trans_id = [% HTML.escape(problem.data.trans_id) %] ) -->
103
104      [%- END %]
105     </td>
106
107     <td valign="top">
108      [%- IF problem.type == 'split_multiple_credit_and_debit' %]
109      [% 'Transaction has been split on both the credit and the debit side' | $T8 %]
110
111      [%- ELSIF problem.type == 'wrong_taxkeys' %]
112      [% 'Wrong tax keys recorded' | $T8 %]
113
114      [%- ELSIF problem.type == 'wrong_taxes' %]
115      [% 'Wrong taxes recorded' | $T8 %]
116
117      [%- ELSIF problem.type == 'ap_ar_wrong_taxkeys' %]
118      [% 'AP transactions with sales taxkeys and/or AR transactions with input taxkeys' | $T8 %]
119
120      [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %]
121      [% 'Sales and purchase invoices with inventory transactions with taxkeys' | $T8 %]
122
123      [%- ELSIF problem.type == 'missing_taxkeys_in_invoices' %]
124      [% 'Missing taxkeys in invoices with taxes.' | $T8 %]
125
126      [%- END %]
127     </td>
128
129     <td valign="top">
130      [%- IF problem.type == 'split_multiple_credit_and_debit' %]
131      [% 'This transaction has to be split into several transactions manually.' | $T8 %]
132
133      [%- ELSIF (problem.type == 'wrong_taxkeys') || (problem.type == 'wrong_taxes') %]
134      <a href="acctranscorrections.pl?action=assistant&trans_id=[% HTML.url(problem.data.trans_id) %]&trans_module=[% HTML.url(problem.data.module) %]&trans_reference=[% HTML.url(problem.data.reference) %]&callback=[% callback %]">
135       [% 'Start the correction assistant' | $T8 %]
136      </a>
137
138      [%- ELSIF problem.type == 'ap_ar_wrong_taxkeys' %]
139      <a href="acctranscorrections.pl?action=assistant_for_ap_ar_wrong_taxkeys&callback=[% callback %]">
140       [% 'Start the correction assistant' | $T8 %]
141      </a>
142
143      [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %]
144      <a href="acctranscorrections.pl?action=assistant_for_invoice_inventory_with_taxkeys&callback=[% callback %]">
145       [% 'Start the correction assistant' | $T8 %]
146      </a>
147
148      [%- END %]
149     </td>
150    </tr>
151    [%- END %]
152
153   </table>
154  </p>
155
156  <hr>
157
158 </body>
159 </html>