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.47k stars 9.28k forks source link

grand_total and base_grand_total have different values, although we have only ONE currency #34649

Open thehl opened 2 years ago

thehl commented 2 years ago

Preconditions (*)

  1. Magento 2.4.3-p1
  2. Configure tax settings like in the screenshot taxsettings
  3. Tax Setup is 19% for Germany
  4. Product Price is 5€ including taxes
  5. Base currency is the same like the store currency

Steps to reproduce (*)

  1. Add the product with qty 1 to the cart
  2. Add shipping address in Germany
  3. Get cart totals

Expected result (*)

  1. grand_total and base_grand_total should be the same value, because base and store currency are identical.

Actual result (*)

  1. grand_total and base_grand_total have different values grandtotal
  2. It seems grand_total is reduced by tax_amount, see: https://github.com/magento/magento2/blob/7255b67280f0755590232467662247789d82c449/app/code/Magento/Quote/Model/Cart/CartTotalRepository.php#L113

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

m2-assistant[bot] commented 2 years ago

Hi @thehl. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

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:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] commented 2 years ago

Hi @engcom-Delta. 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-Delta commented 2 years ago

Hi @thehl, Tried to reproduce the issue on Magento 2.4 Develop , observed that grand_total and base_grand_total values are different. Hence added 'Issue Confirmed' Label Please find below response for reference. grandTotal

{

"base_discount_amount": 0,
"base_grand_total": 14,
"base_discount_tax_compensation_amount": 0,
"base_shipping_amount": 0,
"base_shipping_discount_amount": 0,
"base_shipping_discount_tax_compensation_amnt": 0,
"base_shipping_incl_tax": 0,
"base_shipping_tax_amount": 0,
"base_subtotal": 14,
"base_subtotal_incl_tax": 14,
"base_tax_amount": 0,
"base_total_due": 14,
"base_to_global_rate": 1,
"base_to_order_rate": 0.7067,
"billing_address_id": 30,
"created_at": "2021-11-17 06:13:27",
"customer_firstname": "test",
"customer_group_id": 1,
"customer_id": 4,
"customer_is_guest": 0,
"customer_lastname": "techs",
"customer_note_notify": 1,
"discount_amount": 0,
"entity_id": 16,
"global_currency_code": "EUR",
"grand_total": 9.89,
"discount_tax_compensation_amount": 0,
"increment_id": "000000016",
"is_virtual": 1,
"order_currency_code": "EUR",
"protect_code": "6695c817289e87adad6a5be38f53c1f8",
"quote_id": 35,
"remote_ip": "127.0.0.1",
"shipping_amount": 0,
"shipping_discount_amount": 0,
"shipping_discount_tax_compensation_amount": 0,
"shipping_incl_tax": 0,
"shipping_tax_amount": 0,
"state": "new",
"status": "pending",
"store_currency_code": "EUR",
"store_id": 1,
"store_name": "Main Website\r\nMain Website Store\r\nDefault Store View",
"store_to_base_rate": 0,
"store_to_order_rate": 0,
"subtotal": 9.89,
"subtotal_incl_tax": 9.89,
"tax_amount": 0,
"total_due": 9.89,
"total_item_count": 1,
"total_qty_ordered": 1,
"updated_at": "2021-11-17 06:13:30",
"weight": 0,
"items": [
    {
github-jira-sync-bot commented 2 years ago

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

m2-assistant[bot] commented 2 years ago

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

itsmemagento commented 2 years ago

@thehl Is there any fix this issue

pablomishchenko commented 2 years ago

@magento I am working on this

veloraven commented 2 years ago

@magento I am working on this

m2-assistant[bot] commented 2 years ago

Hi @veloraven! :wave: Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team command to join Contributors team.

veloraven commented 2 years ago

@magento add to contributors team

m2-assistant[bot] commented 2 years ago

Hi @veloraven! :wave: Thank you for joining. Please accept team invitation :point_right: here :point_left: and add your comment one more time.

veloraven commented 2 years ago

@magento I am working on this

veloraven commented 2 years ago

Adobe Team is working on this issue now

niekappartmedia commented 2 years ago

@veloraven Any news on this issue? Its now 25 of July.