[% USE HTML %][% USE LxERP %]

[% title %]

Lx-Office has found one or more problems in the general ledger.

Period: [%- IF transdate_from || transdate_to %] [%- IF transdate_from %] from (time) [% transdate_from %] [%- END %] [%- IF transdate_to %] to (time) [% transdate_to %] [%- END %] [%- ELSE %] all entries [%- END %]

[%- FOREACH problem = PROBLEMS %] [%- END %]
Transaction Problem Solution
[%- IF problem.type == 'ap_ar_wrong_taxkeys' %] [%- IF problem.ap_problems.size %] Purchase Transactions [%- FOREACH ap = problem.ap_problems %] [%- UNLESS loop.first %], [%- END %] [% HTML.escape(ap.data.reference) %] [%- END %] [%- END %] [%- IF problem.ar_problems.size %] [%- IF problem.ap_problems.size %]; [%- END %] Sales Transactions [%- FOREACH ar = problem.ar_problems %] [%- UNLESS loop.first %], [%- END %] [% HTML.escape(ar.data.reference) %] [%- END %] [%- END %] [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %] [%- IF problem.ar_problems.size %] Sales invoices [%- FOREACH subproblem = problem.ar_problems %] [%- UNLESS loop.first %], [%- END %] [% HTML.escape(subproblem.data.reference) %] [%- END %] [%- END %] [%- IF problem.ap_problems.size %] [%- IF problem.ar_problems.size %]; [%- END %] Purchase invoices [%- FOREACH subproblem = problem.ap_problems %] [%- UNLESS loop.first %], [%- END %] [% HTML.escape(subproblem.data.reference) %] [%- END %] [%- END %] [%- ELSE %] [%- IF problem.data.module == 'ar' %] Sales Transaction [%- ELSIF problem.data.module == 'ap' %] Purchase Transaction [%- ELSE %] General Ledger Transaction [%- END %] [% HTML.escape(problem.data.reference) %] [%- END %] [%- IF problem.type == 'split_multiple_credit_and_debit' %] Transaction has been split on both the credit and the debit side [%- ELSIF problem.type == 'wrong_taxkeys' %] Wrong tax keys recorded [%- ELSIF problem.type == 'wrong_taxes' %] Wrong taxes recorded [%- ELSIF problem.type == 'ap_ar_wrong_taxkeys' %] AP transactions with sales taxkeys and/or AR transactions with input taxkeys [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %] Sales and purchase invoices with inventory transactions with taxkeys [%- END %] [%- IF problem.type == 'split_multiple_credit_and_debit' %] This transaction has to be split into several transactions manually. [%- ELSIF (problem.type == 'wrong_taxkeys') || (problem.type == 'wrong_taxes') %] Start the correction assistant [%- ELSIF problem.type == 'ap_ar_wrong_taxkeys' %] Start the correction assistant [%- ELSIF problem.type == 'invoice_inventory_with_taxkeys' %] Start the correction assistant [%- END %]