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