1 [% USE HTML %][% USE LxERP %]
 
   4  <p><div class="listtop">[% title %]</div></p>
 
   6  <p>Lx-Office has found one or more problems in the general ledger.</p>
 
  10   [%- IF transdate_from || transdate_to %]
 
  11    [%- IF transdate_from %]
 
  12    from (time) [% transdate_from %]
 
  14    [%- IF transdate_to %]
 
  15    to (time) [% transdate_to %]
 
  25     <th class="listheading">Transaction</th>
 
  26     <th class="listheading">Problem</th>
 
  27     <th class="listheading">Solution</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 %]
 
  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 %]
 
  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 %]
 
  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 %]
 
  64        [%- FOREACH subproblem = problem.ap_problems %]
 
  65         [%- UNLESS loop.first %], [%- END %]
 
  66         <a href="[% subproblem.link %]">[% HTML.escape(subproblem.data.reference) %]</a>
 
  72      <a href="[% problem.link %]">
 
  73       [%- IF problem.data.module == 'ar' %]
 
  75       [%- ELSIF problem.data.module == 'ap' %]
 
  78       General Ledger Transaction
 
  80       [% HTML.escape(problem.data.reference) %]
 
  83       <!-- ( [% problem.data.module %].id = acc_trans.trans_id = [% HTML.escape(problem.data.trans_id) %] ) -->
 
  89      [%- IF problem.type == 'split_multiple_credit_and_debit' %]
 
  90      Transaction has been split on both the credit and the debit side
 
  92      [%- ELSIF problem.type == 'wrong_taxkeys' %]
 
  93      Wrong tax keys recorded
 
  95      [%- ELSIF problem.type == 'wrong_taxes' %]
 
  98      [%- ELSIF problem.type == 'ap_ar_wrong_taxkeys' %]
 
  99      AP transactions with sales taxkeys and/or AR transactions with input taxkeys
 
 101      [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %]
 
 102      Sales and purchase invoices with inventory transactions with taxkeys
 
 108      [%- IF problem.type == 'split_multiple_credit_and_debit' %]
 
 109      This transaction has to be split into several transactions manually.
 
 111      [%- ELSIF (problem.type == 'wrong_taxkeys') || (problem.type == 'wrong_taxes') %]
 
 112      <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 %]">
 
 113       Start the correction assistant
 
 116      [%- ELSIF problem.type == 'ap_ar_wrong_taxkeys' %]
 
 117      <a href="acctranscorrections.pl?action=assistant_for_ap_ar_wrong_taxkeys&callback=[% callback %]">
 
 118       Start the correction assistant
 
 121      [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %]
 
 122      <a href="acctranscorrections.pl?action=assistant_for_invoice_inventory_with_taxkeys&callback=[% callback %]">
 
 123       Start the correction assistant