Closed
Description
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 (*)
- Magento 2.4.3
- 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 (*)
- Create 3 known Rules as mentioned in above grid.
- Try to Checkout anything with an Address from the Range (eg: 9610-111) and Country Portugal.
Expected result (*)
- Tax Should be 0 % = 0 €
Actual result (*)
- Tax will be applied from 54 but Never from 136
Additional Info (*)
- 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
Projects
Status
Done