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