Preserve original tax when appling tax rules

It is always the same in the case of IRPF, but not in the case of RE (Recargo de Equivalencia).

Here’s the list of taxes and replacements needed:

IVA 21% => IVA 21% + RE 5.2%
IVA 10% => IVA 10% + RE 1.4%
IVA 4% => IVA 4% + RE 0.5%

So in this case we must create:

  • The standard IVA 21% tax
  • The parent tax named “IVA 21% + RE 5.2%”
  • A “IVA 21%” tax which is a child of “IVA 21% + RE 5.2%”
  • A “RE 5.2%” tax which is a child of “IVA 21% + RE 5.2%”

So we’re creating 4 tax records where 2 should be enough.

Idem for the “IVA 10%” and “IVA 4%” cases.