{"data":{"id":"ACSD-68356","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixed the issue where a GraphQL cart query returned an incorrect discount amount for virtual quotes.","categories":["GraphQL","Price/Tax"],"components":["magento/module-quote-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-73/acsd-68356","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-73/acsd-68356.md","blobSha":"e16d11e39c736766b2d73030d2f9809580e092b8","description":"GraphQL cart queries return incorrect discount amounts for virtual quotes, applying discounts to ineligible virtual products.","stepsToReproduce":"1. Create two virtual products: 1. virtual1 SKU 1. virtual2 SKU 1. Create a cart price rule: 1. Set to apply automatically, without a coupon. 1. Actions: 1. Percent of product price discount - 20%. 1. Applies only to cart items where SKU is virtual2. 1. Add products to a fresh empty quote through storefront: 1. Add virtual1 SKU first. 1. Add virtual2 SKU second. 1. Get cart details using the following GraphQL query: { cart(cart_id: \"cart_id\") { email itemsV2 { total_count items { uid prices { total_item_discount { value } price { value } discounts { label amount { value } } } product { name sku } quantity }, page_info { page_size current_page total_pages } } applied_coupons { code } prices { discounts { amount { value } applied_to label } grand_total { value } } } } 1. Check cart > items > prices > discounts.","introducedInQpt":"1.1.73","createdFor":["2.4.8-p2"],"documentedRange":"2.4.8 - 2.4.8-p3","scheduledFixRelease":"2.4.9"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.8 <2.4.9","path":"patches/os/ACSD-68356_2.4.8-p2.patch","blobSha":"008b7bbcd9cebc30280d4c4a9a3d7dfc4ec5dcce","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-68356_2.4.8-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-quote-graph-ql/Model/GetDiscounts.php","change":"modified","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/Model/Resolver/Discounts.php","change":"modified","package":"magento/module-quote-graph-ql"}],"packages":["magento/module-quote-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8"],"magento-commerce":["2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8"],"magento-commerce":["2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-68356 details"}