{"data":{"id":"ACSD-62118","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where the sales_order_tax_item table isn't fully updated when B2B orders are placed using the Purchase Order method.","categories":["B2B","Price/Tax","Payments"],"components":["magento/module-purchase-order"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-58/acsd-62118-tax-item-table-not-updated-po-method","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-58/acsd-62118-tax-item-table-not-updated-po-method.md","blobSha":"0753c30e0f2e8d035d9ab8de87a4ac3e07254d33","description":"When B2B orders are placed using the Purchase Order method, the sales_order_tax_item table is not fully updated. This issue affects tax calculations and order processing. Specifically, the applied_taxes array is empty when querying the order via the API, and both tax_item_amount and tax_item_percent are NULL.","stepsToReproduce":"1. Add tax rules for both Product and Shipping. 1. Enable the Purchase Order method in the Company settings. 1. Log in as a Company Admin User. 1. Place a Purchase Order using an offline payment method. 1. After the Purchase Order is auto-approved and converted to an order, check the tax data in the sales_order_tax_item table and through the REST API.","introducedInQpt":"1.1.58","createdFor":["2.4.6-p3"],"documentedRange":"2.4.6 - 2.4.7-p3","scheduledFixRelease":"2.4.8"},"files":[{"package":"magento/magento2-b2b-base","constraint":">=1.3.5 <1.4.3","path":"patches/commerce/ACSD-62118_1.3.5-p3.patch","blobSha":"dd5324f1ffa41f1996a13b0133f64f2dbda7df39","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-62118_1.3.5-p3.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-purchase-order/Plugin/Quote/Model/QuotePlugin.php","change":"modified","package":"magento/module-purchase-order"}],"packages":["magento/module-purchase-order"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.7-p2","2.4.7-p1","2.4.7","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.7-p2","2.4.7-p1","2.4.7","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"conditions":{"and":[{"type":"config","path":"btob/website_configuration/company_active","match":"1"},{"type":"config","path":"btob/website_configuration/purchaseorder_enabled","match":"1"}]},"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-62118 details"}