The tax rates in Luxemburg / Luxembourg have been temporarily adjust in 2023. This needs to be updated inside the EuropeanUnionVat class.

See: https://gouvernement.lu/en/actualites/toutes_actualites/communiques/2022....

Issue fork commerce-3337933

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

basvredeling created an issue. See original summary.

basvredeling’s picture

Status: Active » Needs review
StatusFileSize
new1.59 KB
jsacksick’s picture

I wonder if we shouldn't do like in DE, which is the following:

['number' => '0.19', 'start_date' => '2007-01-01', 'end_date' => '2020-06-30'],
['number' => '0.16', 'start_date' => '2020-07-01', 'end_date' => '2020-12-31'],
['number' => '0.19', 'start_date' => '2021-01-01'],

Instead of:

        'percentages' => [
-            ['number' => '0.17', 'start_date' => '2015-01-01'],
+            ['number' => '0.16', 'start_date' => '2023-01-01', 'end_date' => '2023-12-31'],
+            ['number' => '0.17', 'start_date' => '2014-01-01'],
           ],

Have this instead:

        'percentages' => [
             ['number' => '0.17', 'start_date' => '2015-01-01', 'end_date' => '2022-12-31'],
            ['number' => '0.16', 'start_date' => '2023-01-01', 'end_date' => '2023-12-31'],
            ['number' => '0.17', 'start_date' => '2024-01-01'],
           ],

This probably makes more sense, thoughts?

basvredeling’s picture

@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.

basvredeling’s picture

StatusFileSize
new1.86 KB

@jsacksick Ah never mind, I also see I mistyped 2024 as 2014 😬
New patch added.

jsacksick’s picture

The 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).

basvredeling’s picture

The latest patch includes the old rates as well.

jsacksick’s picture

Status: Needs review » Fixed

Yes I know :), simply forgot to commit it yesterday as I was busy with other work.

basvredeling’s picture

Thanks @jsacksick

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.