# Configuration of tax codes esp. account\_de\_skr03

**URL:** <https://discuss.tryton.org/t/configuration-of-tax-codes-esp-account-de-skr03/5000>\
**Category:** Developer\
**Tags:** accounting\
**Created:** [February 9, 2022, 10:25am UTC](https://discuss.tryton.org/t/configuration-of-tax-codes-esp-account-de-skr03/5000 "2022-02-09T10:25:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yangoon](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/y/67e7ee/32.png) [@yangoon](https://discuss.tryton.org/u/yangoon)\
**Post date:** [February 9, 2022, 10:25am UTC](https://discuss.tryton.org/t/configuration-of-tax-codes-esp-account-de-skr03/5000/1 "2022-02-09T10:25:30Z")

</div>

Having another detailed look at the tax code chart of account\_de\_skr03 while debugging intra-community taxes in one of our modules I found a surprising behavior (probably existing since the very start, I checked back until version 5.0).

**The problem**

To have all readers on the same picture some rough translations of tax code names:

- 83: Remaining advance payment for VAT / Remaining surplus - please put a negative sign before the amount
- U: VAT
- VST: Deducible input tax

As the tax code structure is deducted from a regular official formular this means that in field 83 should be the resulting amount to pay to the tax collection agency which should amount to U minus VST. For testing I created a customer and supplier invoice with amount 100€ subject to VAT 19% resp. Deducible Input Tax 19%. The result of taxes to pay thus amounts to zero.

**The current behavior**

 ![skr03_current](https://discuss-cdn.tryton.org/uploads/default/original/2X/e/ee814f431936c79a262ded349cf6d3940e53c7c9.png)

Note: Do not care about the base amount which is correctly 100, I used an intracommunity tax in this example provding basically the same tax line setup.

All tax amounts are summed in field 83 thus showing a definitely wrong amount according to its name.

**Solution 1**

 ![skr03_vst_reversed](https://discuss-cdn.tryton.org/uploads/default/original/2X/c/c9728a30d20782dcb3fc93b677c4f01422e0bf79.png)

Reverting the tax code line signs for Deducible Input Tax 19% indeed results in correct numbers.  
This solution would afford a migration of existing tax lines when applied.

**Solution 2**

 ![skr03_83_renamed](https://discuss-cdn.tryton.org/uploads/default/original/2X/c/c65100bbe31cb154c7036a3c92e7efa4b14ed47d.png)

Renaming tax code 83 to a correct name indicating that taxes are just summed up and do **not** show the result to deduct to authorities.

**Which direction to take?**

Personally I am strongly inclined to Solution 1.

- The resulting amount to pay shows correctly the expected sum.
- OTOH this change will afford migration of existing tax lines and will show after migration different tax code charts for previous periods.
- Solution 2 corrects the (currently wrong) description but doesn’t provide useful numbers.

Thoughts? @ced , @timitos , @udono

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 9, 2022, 2:08pm UTC](https://discuss.tryton.org/t/configuration-of-tax-codes-esp-account-de-skr03/5000/2 "2022-02-09T14:08:42Z")

</div>

> [@yangoon](#):
>
> Reverting the tax code line signs for Deducible Input Tax 19% indeed results in correct numbers.

This seems a good solution but it depends also on the sign expected for VST in the tax report.  
If it should be positive then it will probably better to add a new feature to tax code `get_amount` to define if a children code must be added or subtracted.

---

<div class="post-metadata">

**Author:** ![yangoon](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/y/67e7ee/32.png) [@yangoon](https://discuss.tryton.org/u/yangoon)\
**Post date:** [February 9, 2022, 3:35pm UTC](https://discuss.tryton.org/t/configuration-of-tax-codes-esp-account-de-skr03/5000/3 "2022-02-09T15:35:38Z")

</div>

Good catch. The official portal at [ELSTER - Startseite](https://www.elster.de/eportal/) expects positive numbers for deducible taxes, I suspect other softwares behave the same way. So the proposed feature is much more elegant and won’t require a problematic migration.
