2 [% USE HTML %][% USE LxERP %]
5 <p><div class="listtop">[% title %]</div></p>
7 <p>[% 'Lx-Office has found one or more problems in the general ledger.' | $T8 %]</p>
11 [%- IF transdate_from || transdate_to %]
12 [%- IF transdate_from %]
13 [% 'from (time)' | $T8 %] [% transdate_from %]
15 [%- IF transdate_to %]
16 [% 'to (time)' | $T8 %] [% transdate_to %]
19 [% 'all entries' | $T8 %]
26 <th class="listheading">[% 'Transaction' | $T8 %]</th>
27 <th class="listheading">[% 'Problem' | $T8 %]</th>
28 <th class="listheading">[% 'Solution' | $T8 %]</th>
31 [%- FOREACH problem = PROBLEMS %]
32 <tr class="listrow[% loop.count % 2 %]">
34 [%- IF problem.type == 'ap_ar_wrong_taxkeys' %]
35 [%- IF problem.ap_problems.size %]
36 [% 'AP Transactions' | $T8 %]
37 [%- FOREACH ap = problem.ap_problems %]
38 [%- UNLESS loop.first %], [%- END %]
39 <a href="[% ap.link %]">[% HTML.escape(ap.data.reference) %]</a>
43 [%- IF problem.ar_problems.size %]
44 [%- IF problem.ap_problems.size %]; [%- END %]
45 [% 'AR Transactions' | $T8 %]
46 [%- FOREACH ar = problem.ar_problems %]
47 [%- UNLESS loop.first %], [%- END %]
48 <a href="[% ar.link %]">[% HTML.escape(ar.data.reference) %]</a>
53 [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %]
54 [%- IF problem.ar_problems.size %]
55 [% 'Sales invoices' | $T8 %]
56 [%- FOREACH subproblem = problem.ar_problems %]
57 [%- UNLESS loop.first %], [%- END %]
58 <a href="[% subproblem.link %]">[% HTML.escape(subproblem.data.reference) %]</a>
62 [%- IF problem.ap_problems.size %]
63 [%- IF problem.ar_problems.size %]; [%- END %]
64 [% 'Purchase invoices' | $T8 %]
65 [%- FOREACH subproblem = problem.ap_problems %]
66 [%- UNLESS loop.first %], [%- END %]
67 <a href="[% subproblem.link %]">[% HTML.escape(subproblem.data.reference) %]</a>
71 [%- ELSIF problem.type == 'missing_taxkeys_in_invoices' %]
72 [%- IF problem.ar_problems.size %]
73 [% 'Sales invoices' | $T8 %]
74 [%- FOREACH subproblem = problem.ar_problems %]
75 [%- UNLESS loop.first %], [%- END %]
76 <a href="[% subproblem.link %]">[% HTML.escape(subproblem.data.reference) %]</a>
80 [%- IF problem.ap_problems.size %]
81 [%- IF problem.ar_problems.size %]; [%- END %]
82 [% 'Purchase invoices' | $T8 %]
83 [%- FOREACH subproblem = problem.ap_problems %]
84 [%- UNLESS loop.first %], [%- END %]
85 <a href="[% subproblem.link %]">[% HTML.escape(subproblem.data.reference) %]</a>
91 <a href="[% problem.link %]">
92 [%- IF problem.data.module == 'ar' %]
93 [% 'AR Transaction' | $T8 %]
94 [%- ELSIF problem.data.module == 'ap' %]
95 [% 'AP Transaction' | $T8 %]
97 [% 'General Ledger Transaction' | $T8 %]
99 [% HTML.escape(problem.data.reference) %]
102 <!-- ( [% problem.data.module %].id = acc_trans.trans_id = [% HTML.escape(problem.data.trans_id) %] ) -->
108 [%- IF problem.type == 'split_multiple_credit_and_debit' %]
109 [% 'Transaction has been split on both the credit and the debit side' | $T8 %]
111 [%- ELSIF problem.type == 'wrong_taxkeys' %]
112 [% 'Wrong tax keys recorded' | $T8 %]
114 [%- ELSIF problem.type == 'wrong_taxes' %]
115 [% 'Wrong taxes recorded' | $T8 %]
117 [%- ELSIF problem.type == 'ap_ar_wrong_taxkeys' %]
118 [% 'AP transactions with sales taxkeys and/or AR transactions with input taxkeys' | $T8 %]
120 [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %]
121 [% 'Sales and purchase invoices with inventory transactions with taxkeys' | $T8 %]
123 [%- ELSIF problem.type == 'missing_taxkeys_in_invoices' %]
124 [% 'Missing taxkeys in invoices with taxes.' | $T8 %]
130 [%- IF problem.type == 'split_multiple_credit_and_debit' %]
131 [% 'This transaction has to be split into several transactions manually.' | $T8 %]
133 [%- ELSIF (problem.type == 'wrong_taxkeys') || (problem.type == 'wrong_taxes') %]
134 <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 %]">
135 [% 'Start the correction assistant' | $T8 %]
138 [%- ELSIF problem.type == 'ap_ar_wrong_taxkeys' %]
139 <a href="acctranscorrections.pl?action=assistant_for_ap_ar_wrong_taxkeys&callback=[% callback %]">
140 [% 'Start the correction assistant' | $T8 %]
143 [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %]
144 <a href="acctranscorrections.pl?action=assistant_for_invoice_inventory_with_taxkeys&callback=[% callback %]">
145 [% 'Start the correction assistant' | $T8 %]