In Spain we have an special tax that is called recargo the equivalencia which is applied to some companies when purchasing goods or services to other companies.
This tax is applied as an extra charge of the main tax and when reporting the list of operations to the tax authority (using the VAT book or the Suministro Inmediato of Information) it is required to detail in a single line both taxes.
Let me put an example:
We have an invoice of an untaxed_amount for 100€, which applies for normall IVA (21%) and normal recargo de equivalencia (5.2%). On tryton the following tax lines are created:
- IVA 21%: Base 100€ Amount: 21€
- Recargo 5.2: Base: 100€ Amount: 5.2€
But when reporting this to the tax authorities we need to report the following details:
- IVA 21%, Base 100€, Amount 21€, Recargo Type: 5.2, Recargo Amount: 5.2€
For those invoices that did not have any recargo amount the recargo type and recargo amounts are empty.
As in a single invoices we may include different IVAs (and so different Recargo Types) we should be able to determine that the RE tax is related to the IVA.
Currently the only relation between both lines is that there is an account.tax.rule.line with the Keep Origin boolean field set between them. This can be used by a functional field to compute it’s amounts. But I’m not sure if this is the way to go.
Any toughs on this will be very welcome.