Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Tax
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2023 at 13:50 UTC
Updated:
27 Feb 2023 at 21:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
basvredelingComment #4
jsacksick commentedI wonder if we shouldn't do like in DE, which is the following:
Instead of:
Have this instead:
This probably makes more sense, thoughts?
Comment #5
basvredeling@jsacksick I don't see how keeping expired tax rates is necessary. Tax rates are calculated on the current date right? Or is there a use case for historical rates? It doesn't hurt to add the old rates either, I guess.
Comment #6
basvredeling@jsacksick Ah never mind, I also see I mistyped 2024 as 2014 😬
New patch added.
Comment #7
jsacksick commentedThe tax module calls the
$order->getCalculationDate()method to determine based on which date the tax should be calculated.So it's important to keep the old rate yes, as one could be recalculating taxes for a 2014 order (probably not a frequent usecase for sure but I think it's also easier to keep track of what's happening like this).
Comment #8
basvredelingThe latest patch includes the old rates as well.
Comment #11
jsacksick commentedYes I know :), simply forgot to commit it yesterday as I was busy with other work.
Comment #12
basvredelingThanks @jsacksick