[%- USE T8 %] [% USE HTML %][% USE LxERP %]

[% title %]

[% 'kivitendo has found one or more problems in the general ledger.' | $T8 %]

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

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