Skip to content

Missmatch Portugal ZIP Code Matching #34271

Closed
@mklooss

Description

@mklooss

Missmatch Portugal ZIP Code Matching - ( #14220 )

Issue description: irrespective of zip code & tax rate set , tax gets calculated only default is 23% which is zip code set '* '.

the Issues will be produced by this method: https://github.com/magento/magento2/blob/2.4/app/code/Magento/Tax/Model/ResourceModel/Calculation.php#L345-L355

Preconditions (*)

  1. Magento 2.4.3
  2. Tax Calculation Rule:
+-------------------------+----------------+---------------+--------------+-----------------------+---------+--------------+----------+--------+
| tax_calculation_rate_id | tax_country_id | tax_region_id | tax_postcode | code                  | rate    | zip_is_range | zip_from | zip_to |
+-------------------------+----------------+---------------+--------------+-----------------------+---------+--------------+----------+--------+
|                      54 | PT             |             0 | *            | TAX Portugal       | 23.0000 |         NULL |     NULL |   NULL |
|                     136 | PT             |             0 | 96*          | 0% TAX - PT/A2-96% |  1.0000 |         NULL |     NULL |   NULL |
|                     137 | PT             |             0 | 97*          | 0% TAX - PT/A2-97% |  0.0000 |         NULL |     NULL |   NULL |
+-------------------------+----------------+---------------+--------------+-----------------------+---------+--------------+----------+--------+

Steps to reproduce (*)

  1. Create 3 known Rules as mentioned in above grid.
  2. Try to Checkout anything with an Address from the Range (eg: 9610-111) and Country Portugal.

Expected result (*)

  1. Tax Should be 0 % = 0 €

Actual result (*)

  1. Tax will be applied from 54 but Never from 136

Additional Info (*)

  1. By choosing an 96XXXX code, the applied tax is turning to 24% (Where 23% is from * rule, and 1% from 96*)

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • [x ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions