Invoice tax is changed for old unpayed invoices

Hi, I found this problem after the IRPF tax was changed in Spain. I had configured a 19% invoce tax and had several unpayed invoices. Then the tax changed to 15% and I accordingly changed it too in the invoice preferences. The problem appeared when I marked as ‘payed’ one of the old invoices. The tax was changed to 19% and the total amount was changed too.

Is this a bug or must I configure the invoice tax in a different manner?

thanks

I would recommend adding a new tax when a tax changed. InvoicePlane is not capable of handling this scenario correctly at the moment.