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

[% title %]

The following transaction contains wrong taxkeys: [%- IF problem.data.module == 'ar' %] AR Transaction [%- ELSIF problem.data.module == 'ap' %] AP Transaction [%- ELSE %] General Ledger Transaction [%- END %] [% HTML.escape(problem.data.reference) %]

This could have happened for two reasons: The first reason is that Lx-Office contained a bug which resulted in the wrong taxkeys being recorded for transactions in which two entries are posted for the same chart with different taxkeys. The second reason is that Lx-Office allowed the user to enter the tax amount manually regardless of the taxkey used. Such entries cannot be exported into the DATEV format and have to be fixed as well.

The transaction is shown below in its current state. You can correct this transaction by chosing the correct taxkeys from the drop down boxes and hitting the button "Fix transaction" afterwards. It is possible that even after such a correction there is something wrong with this transaction (e.g. taxes that don't match the selected taxkey). Therefore you should re-run the general ledger analysis.

You can also delete this transaction and re-enter it manually. In order to do that hit the button "Delete transaction".

At the moment the transaction looks like this:

[%- SET curr_row = 0 %] [%- IF (problem.data.module == 'ar') || ((problem.data.module == 'gl') && (problem.acc_trans.credit.entries.first.acc_trans_id < problem.acc_trans.debit.entries.first.acc_trans_id)) %] [%- SET order = [ 'credit', 'debit' ] %] [%- SET other_side = 'debit' %] [%- ELSE %] [%- SET order = [ 'debit', 'credit' ] %] [%- SET other_side = 'credit' %] [%- END %] [%- IF problem.acc_trans.credit.entries.size > problem.acc_trans.debit.entries.size %] [%- ELSE %] [%- END %] [%- FOREACH idx = order %] [%- FOREACH row = problem.acc_trans.$idx.entries %] [%- SET curr_row = curr_row + 1 %] [%- END %] [%- END %]
Account Debit Credit Recorded Tax Recorded taxkey Expected Tax Correct taxkey
[% HTML.escape(row.accno) %]--[% HTML.escape(row.chartdescription) %] [%- IF idx == 'debit' %] [% LxERP.format_amount(row.display_amount, 2) %] [%- END %] [%- IF idx == 'credit' %] [% LxERP.format_amount(row.display_amount, 2) %] [%- END %] [% IF row.actual_tax %][% LxERP.format_amount(row.display_actual_tax, 2) %][% END %] [% IF (problem.data.module == 'gl') || (idx != other_side) %][% HTML.escape(row.taxdescription) %][% END %] [% IF row.expected_tax %][% LxERP.format_amount(row.display_expected_tax, 2) %][% END %] [%- IF row.taxkey_error %]