2 [% USE HTML %][% USE LxERP %]
 
   4  <p><div class="listtop">[% title %]</div></p>
 
   6  <p>[% 'kivitendo has found one or more problems in the general ledger.' | $T8 %]</p>
 
  10   [%- IF transdate_from || transdate_to %]
 
  11    [%- IF transdate_from %]
 
  12    [% 'from (time)' | $T8 %] [% transdate_from %]
 
  14    [%- IF transdate_to %]
 
  15    [% 'to (time)' | $T8 %] [% transdate_to %]
 
  18   [% 'all entries' | $T8 %]
 
  25     <th class="listheading">[% 'Transaction' | $T8 %]</th>
 
  26     <th class="listheading">[% 'Problem' | $T8 %]</th>
 
  27     <th class="listheading">[% 'Solution' | $T8 %]</th>
 
  30    [%- FOREACH problem = PROBLEMS %]
 
  31    <tr class="listrow[% loop.count % 2 %]">
 
  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>
 
  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>
 
  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>
 
  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>
 
  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>
 
  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>
 
  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 %]
 
  96       [% 'General Ledger Transaction' | $T8 %]
 
  98       [% HTML.escape(problem.data.reference) %]
 
 101       <!-- ( [% problem.data.module %].id = acc_trans.trans_id = [% HTML.escape(problem.data.trans_id) %] ) -->
 
 107      [%- IF problem.type == 'split_multiple_credit_and_debit' %]
 
 108      [% 'Transaction has been split on both the credit and the debit side' | $T8 %]
 
 110      [%- ELSIF problem.type == 'wrong_taxkeys' %]
 
 111      [% 'Wrong tax keys recorded' | $T8 %]
 
 113      [%- ELSIF problem.type == 'wrong_taxes' %]
 
 114      [% 'Wrong taxes recorded' | $T8 %]
 
 116      [%- ELSIF problem.type == 'ap_ar_wrong_taxkeys' %]
 
 117      [% 'AP transactions with sales taxkeys and/or AR transactions with input taxkeys' | $T8 %]
 
 119      [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %]
 
 120      [% 'Sales and purchase invoices with inventory transactions with taxkeys' | $T8 %]
 
 122      [%- ELSIF problem.type == 'missing_taxkeys_in_invoices' %]
 
 123      [% 'Missing taxkeys in invoices with taxes.' | $T8 %]
 
 129      [%- IF problem.type == 'split_multiple_credit_and_debit' %]
 
 130      [% 'This transaction has to be split into several transactions manually.' | $T8 %]
 
 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 %]
 
 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 %]
 
 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 %]