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.5k stars 9.3k forks source link

[Issue] Return shipping total including tax #36876

Open m2-assistant[bot] opened 1 year ago

m2-assistant[bot] commented 1 year ago

This issue is automatically created based on existing pull request: magento/magento2#35338: Return shipping total including tax


Description (*)

Return shipping total including tax for selected shipping method resolver. Vanilla Magento will always display the shipping price including tax within cart price summary, regardless of tax/calculation/shipping_includes_tax value. This logic is not mirrored in the graphql resolvers, however, as the base shipping amount is returned.

Vanilla Magento checkout with tax/calculation/shipping_includes_tax set to 1: image

GraphQL cart query for shipping totals with tax/calculation/shipping_includes_tax set to 1:

query getCartDetails($cartId: String!) {
    cart(cart_id: $cartId) {
        shipping_addresses {
            selected_shipping_method {
                amount {
                    value
                    currency
                }
                carrier_code
                carrier_title
                method_code
                method_title
            }
        }
    }
}
{
  "data": {
    "cart": {
      "shipping_addresses": [
        {
          "selected_shipping_method": {
            "amount": {
              "value": 8.33,
              "currency": "GBP"
            },
            "carrier_code": "testshipping",
            "carrier_title": "Shipping",
            "method_code": "testshipping",
            "method_title": "Shipping"
          }
        }
      ]
    }
  }
}

Related Pull Requests

Fixed Issues (if relevant)

Manual testing scenarios (*)

Questions or comments

Contribution checklist (*)

github-jira-sync-bot commented 1 year ago

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

m2-assistant[bot] commented 1 year ago

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

engcom-November commented 1 year ago

Hi all, Development team is currently working on this issue. Thank you.

engcom-Alfa commented 1 year ago

hey @liamjtoohey

kindly help us with more information on below PR raised by you. https://github.com/magento/magento2/pull/35338

Thanks