Tax rules are used to manage the Spanish IRPF. This means that self-employees customers have to pay a % of self-employees profits in advance to the Tax Authorities. This is achieved by applying a tax deduction (a tax with negative tax rate) to the original invoice.
For example, if we have an invoice of 100€, with 21% VAT and 15% IRPF reduction it will produce the following amounts:
The current tax rule system allows to substitute one tax with another but does not allow to add additional taxes to the current tax (which is the case of the IRPF tax rules). Currently in order to add additional taxes to the current tax the following must be done:
Create a new tax with two children: 1. The original tax and the new added tax.
Although this works, it makes the number of available taxes unmaintainable as the number of taxes is the product of all IVA taxes per the IRPF taxes.
Proposal
Add a check on the tax line to preserve the original taxes when applying the tax lines. If this mark is checked, applying the tax rule will return the substitution tax plus the source tax.
What do you mean by “empty call”? On version 4.5 I tried the following:
Create a tax named “IVA 21%”
Create another tax named “IRPF 15%”
Create a tax rule named “IRPF” which has a single rule line where:
origin is empty
replacement tax is “IRPF 15%”
I assigned the IRPF rule to a party
I created a product with the tax “IVA 21%” assigned
I created an invoice to that party and when I choose the product only the “IRPF 15%” tax is added to the invoice line. We need to have both: “IVA 21%” and “IRPF 15%” taxes in the line.
Am I doing something wrong?
Also, looking at the code I don’t see how we can currently achieve what it is requested at the beginning of this thread.