Wrong tax is used when entering a sale in the past
Steps to reproduce:
- Create a parent tax with two children taxes. a) First children tax should have an end date to yesterday and a rate of 20% b) Other children tax must hav a start date of today and a rate of 10%
- Create a product and add the parent tax as customer taxes
- Create a new sale for any customer and set the sale date to yesterday
- The tax rate of the sale is 10%, which is today rate.
- The tax rate of the sale is 20% as is the rate aplicable to yesterday.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information