magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.57k stars 9.32k forks source link

The vat rate is not applied correctly when the selected address is not in the same tax class as the customer's default address #38232

Open nicolaspernot opened 12 months ago

nicolaspernot commented 12 months ago

Preconditions and environment

Steps to reproduce

Expected result

If the customer's default address is VAT-exempt, but he chooses to be billed and/or delivered to another address that is subject to VAT, VAT should be applied to the delivery charges and to the cart.

Note : the choice to apply or not the VAT should be based on the address type selected in BO configuration here : BO > Stores > Configuration > Customers > Customer Configuration > Tax Calculation Based On

Actual result

The VAT is not applied in the example below :

Additional information

I originally met this issue on 2.4.5-p1 but I test the procedure with 2.4-develop instance gave by magento-deployement service and I was able to reproduce.

Release note

No response

Triage and priority

m2-assistant[bot] commented 12 months ago

Hi @nicolaspernot. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

nicolaspernot commented 12 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 12 months ago

Hi @nicolaspernot. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 12 months ago

Hi @nicolaspernot, here is your Magento Instance: https://72a0cbb64654ec3bc7524fabc98b0935.instances-prod.magento-community.engineering Admin access: https://72a0cbb64654ec3bc7524fabc98b0935.instances-prod.magento-community.engineering/admin_ed2f Login: e0566037 Password: d0d2359f0502

nicolaspernot commented 12 months ago

Ok, I did some test on the Magento instance gave by the bot and I updated the original description of this issue to be more accurate. Let me know if something still remains unclear.

m2-assistant[bot] commented 12 months ago

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


engcom-Dash commented 12 months ago

Hi @nicolaspernot Thanks for reporting and collaboration. Verified the issue on mangento 2.4 developer instance and the issue is reproducible. When the customer has VAT exempted Belgium address as default address but chooses france address which is VAT subjected , VAT rate is not getting applied to the order. Please refer the screenshots.

VAT
github-jira-sync-bot commented 12 months ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-10623 is successfully created for this GitHub issue.

m2-assistant[bot] commented 12 months ago

:white_check_mark: Confirmed by @engcom-Dash. Thank you for verifying the issue.
Issue Available: @engcom-Dash, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

hostep commented 10 months ago

@nicolaspernot: we discovered a very similar sounding problem. Does the patch mentioned in this last comment fix your issue? We had success with this fix so far.

Also, in my opinion you should use these config settings for EU sales:

Reason being: