Error with taxes and country groups

Description

As reported by at:
https://groups.google.com/d/msg/idempiere/_Xp1VF8xrpU/knJirwp4N9UJ

The tax discovery is wrong when combining country group and country configuration.

Environment

None

Attachments

1
  • 15 Apr 2015, 08:31 PM

Activity

Show:

Carlos Ruiz February 15, 2022 at 6:35 PM

Pull request 1186

We were hit by the same issue mentioned by here:
https://groups.google.com/g/idempiere/c/yvr64BakfSs/m/qd55RKLbCgAJ

To configure the taxes for a product so:

Germany → Germany = 19%
Germany → European Union = 0% identifiable as Intra-EU
Germany → Rest of the world = 0% identifiable as Extra-EU

The actual code doesn’t work. As suggested by Martin there, allowing to enter the country next to the country group solves the issue.

I found this old patch suggested here, did the tests and is working fine for the German case (and I assume is the same for all the other EU countries). No need to exclude Germany from the country group.

Also, the patch is backward compatible, because it doesn’t touch the logic for the tax calculation at this moment, is just enabling to enter a more detailed record in tax rate.

Nicolas Micoud December 24, 2019 at 2:46 PM

Hi,
Closing this issue as it's working well on a 'fresh' new installation

Carlos Ruiz September 8, 2018 at 2:06 PM

Thanks , so the patch is incomplete, I'm dropping the label +Patch until a complete patch arrives.

Nicolas Micoud September 4, 2018 at 7:22 AM
Edited

Hi

I've done others tests and find out that the patch is working if France is not part of the Country group EU.

Your patch is good as it allows to define rules from region/country/country group to region/country/country group.
But I guess something must be done in MTax to handle those case (discussed in forum).

wdyt ?

Nicolas Micoud September 3, 2018 at 7:28 AM

I think our accountant is using country group.
But as it was done 3 years ago, I need to check and re-test it.

Keep you updated !

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created April 15, 2015 at 8:29 PM
Updated April 1, 2022 at 5:39 PM
Resolved February 16, 2022 at 9:49 AM