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