Keep history of taxes
We need to keep an history of the taxes and add a date has a parameter for retrieving the correct taxes.
If we need to see the taxes of an old contribution, it should use the taxes definition used at the time the contribution was created.
-
Create an SQL table to store tax rates, with start/end fields -
Modify tax calculations so that it takes the contribution/event date into consideration.