2 [% USE HTML %][% USE LxERP %]
5 <p>[% 'kivitendo has found one or more problems in the general ledger.' | $T8 %]</p>
9 [% IF transdate_from || transdate_to %]
10 [% IF transdate_from %]
11 [% 'from (time)' | $T8 %] [% transdate_from %]
14 [% 'to (time)' | $T8 %] [% transdate_to %]
17 [% 'all entries' | $T8 %]
23 <th>[% 'Transaction' | $T8 %]</th>
24 <th>[% 'Problem' | $T8 %]</th>
25 <th>[% 'Solution' | $T8 %]</th>
28 [% FOREACH problem = PROBLEMS %]
29 <tr class="listrow[% loop.count % 2 %]">
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>
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>
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>
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>
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>
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>
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 %]
94 [% 'General Ledger Transaction' | $T8 %]
96 [% HTML.escape(problem.data.reference) %]
99 <!-- ( [% problem.data.module %].id = acc_trans.trans_id = [% HTML.escape(problem.data.trans_id) %] ) -->
105 [% IF problem.type == 'split_multiple_credit_and_debit' %]
106 [% 'Transaction has been split on both the credit and the debit side' | $T8 %]
108 [% ELSIF problem.type == 'wrong_taxkeys' %]
109 [% 'Wrong tax keys recorded' | $T8 %]
111 [% ELSIF problem.type == 'wrong_taxes' %]
112 [% 'Wrong taxes recorded' | $T8 %]
114 [% ELSIF problem.type == 'ap_ar_wrong_taxkeys' %]
115 [% 'AP transactions with sales taxkeys and/or AR transactions with input taxkeys' | $T8 %]
117 [% ELSIF problem.type == 'invoice_inventory_with_taxkeys' %]
118 [% 'Sales and purchase invoices with inventory transactions with taxkeys' | $T8 %]
120 [% ELSIF problem.type == 'missing_taxkeys_in_invoices' %]
121 [% 'Missing taxkeys in invoices with taxes.' | $T8 %]
127 [% IF problem.type == 'split_multiple_credit_and_debit' %]
128 [% 'This transaction has to be split into several transactions manually.' | $T8 %]
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 %]
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 %]
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 %]