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 %]
13 [%- IF transdate_to %]
14 [% 'to (time)' | $T8 %] [% transdate_to %]
17 [% 'all entries' | $T8 %]
24 <th class="listheading">[% 'Transaction' | $T8 %]</th>
25 <th class="listheading">[% 'Problem' | $T8 %]</th>
26 <th class="listheading">[% 'Solution' | $T8 %]</th>
29 [%- FOREACH problem = PROBLEMS %]
30 <tr class="listrow[% loop.count % 2 %]">
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>
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>
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>
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>
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>
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>
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 %]
95 [% 'General Ledger Transaction' | $T8 %]
97 [% HTML.escape(problem.data.reference) %]
100 <!-- ( [% problem.data.module %].id = acc_trans.trans_id = [% HTML.escape(problem.data.trans_id) %] ) -->
106 [%- IF problem.type == 'split_multiple_credit_and_debit' %]
107 [% 'Transaction has been split on both the credit and the debit side' | $T8 %]
109 [%- ELSIF problem.type == 'wrong_taxkeys' %]
110 [% 'Wrong tax keys recorded' | $T8 %]
112 [%- ELSIF problem.type == 'wrong_taxes' %]
113 [% 'Wrong taxes recorded' | $T8 %]
115 [%- ELSIF problem.type == 'ap_ar_wrong_taxkeys' %]
116 [% 'AP transactions with sales taxkeys and/or AR transactions with input taxkeys' | $T8 %]
118 [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %]
119 [% 'Sales and purchase invoices with inventory transactions with taxkeys' | $T8 %]
121 [%- ELSIF problem.type == 'missing_taxkeys_in_invoices' %]
122 [% 'Missing taxkeys in invoices with taxes.' | $T8 %]
128 [%- IF problem.type == 'split_multiple_credit_and_debit' %]
129 [% 'This transaction has to be split into several transactions manually.' | $T8 %]
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 %]
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 %]
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 %]