{"data":{"id":"ACSD-65223","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where manually selected terms and agreements for B2B purchase orders result in an error.","categories":["B2B"],"components":["magento/module-checkout-agreements-purchase-order","magento/module-purchase-order","app/code"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-64/acsd-65223-manually-selected-terms-and-agreements-for-b2b-purchase-orders-result-in-an-error","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-64/acsd-65223-manually-selected-terms-and-agreements-for-b2b-purchase-orders-result-in-an-error.md","blobSha":"c273dbdd6d4450aa9d00a4a20651e4c0f68c0343","description":"If terms and conditions are required to place an order, and you are trying to finalize an order created using Purchase Orders, the order can't be placed using online payment methods like credit cards.","stepsToReproduce":"1. Create a simple product. 1. Go to Stores > Settings > Configuration > General and choose B2B Features. 1. Set Enable Company and Enable Purchase Orders to Yes. 1. Go to Stores > Settings > Terms and Conditions and create a new condition. Set Applied to Manually. 1. Go to Stores > Settings > Configuration > Sales > Checkout and set Enable Terms and Conditions to Yes. 1. Go to Stores > Settings > Configuration > Sales > Payment Methods and configure Braintree. 1. On the storefront, create a company. 1. In the admin, go to Customers > Companies. 1. Approve the company and allow Purchase Orders. 1. On the frontend, log in to the account. 1. Add an item to the cart. 1. Place an order using Purchase Order. 1. In the customer dashboard, click the Purchase Orders tab. 1. Create an order from the new purchase order. Then select credit card as the payment method. 1. Agree to the terms and conditions. 1. Place the order.","introducedInQpt":"1.1.64","createdFor":["1.5.1"],"documentedRange":"1.5.1","scheduledFixRelease":null},"files":[{"package":"magento/magento2-b2b-base","constraint":"1.5.1","path":"patches/commerce/ACSD-65223_B2B_1.5.1.patch","blobSha":"f830a6e4b54fbcec214d874fb5056fa4ae38238d","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-65223_B2B_1.5.1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-checkout-agreements-purchase-order/Model/Checkout/Plugin/Validation.php","change":"added","package":"magento/module-checkout-agreements-purchase-order"},{"path":"vendor/magento/module-checkout-agreements-purchase-order/etc/di.xml","change":"added","package":"magento/module-checkout-agreements-purchase-order"},{"path":"vendor/magento/module-checkout-agreements-purchase-order/etc/module.xml","change":"modified","package":"magento/module-checkout-agreements-purchase-order"},{"path":"vendor/magento/module-checkout-agreements-purchase-order/i18n/en_US.csv","change":"added","package":"magento/module-checkout-agreements-purchase-order"},{"path":"vendor/magento/module-checkout-agreements-purchase-order/view/frontend/requirejs-config.js","change":"modified","package":"magento/module-checkout-agreements-purchase-order"},{"path":"vendor/magento/module-checkout-agreements-purchase-order/view/frontend/web/js/model/agreement-validator.js","change":"added","package":"magento/module-checkout-agreements-purchase-order"},{"path":"vendor/magento/module-purchase-order/view/frontend/web/js/action/place-order-purchase-quote.js","change":"modified","package":"magento/module-purchase-order"},{"path":"vendor/magento/module-purchase-order/view/frontend/web/js/model/place-order-purchase-quote.js","change":"added","package":"magento/module-purchase-order"}],"packages":["magento/module-checkout-agreements-purchase-order","magento/module-purchase-order"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.7-p4","2.4.6-p9"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/security-package-b2b","constraint":"1.0.6","path":"patches/commerce/ACSD-65223_B2B_1.0.6.patch","blobSha":"9ff1de61e8407ef55af05bc188506bb9eea573a4","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-65223_B2B_1.0.6.patch","thirdParty":false,"modifies":[{"path":"app/code/Magento/ReCaptchaPurchaseOrder/README.md","change":"added","package":"magento/module-re-captcha-purchase-order"},{"path":"app/code/Magento/ReCaptchaPurchaseOrder/composer.json","change":"added","package":"magento/module-re-captcha-purchase-order"},{"path":"app/code/Magento/ReCaptchaPurchaseOrder/etc/module.xml","change":"added","package":"magento/module-re-captcha-purchase-order"},{"path":"app/code/Magento/ReCaptchaPurchaseOrder/registration.php","change":"added","package":"magento/module-re-captcha-purchase-order"},{"path":"app/code/Magento/ReCaptchaPurchaseOrder/view/frontend/requirejs-config.js","change":"added","package":"magento/module-re-captcha-purchase-order"},{"path":"app/code/Magento/ReCaptchaPurchaseOrder/view/frontend/web/js/model/place-order-purchase-quote-mixin.js","change":"added","package":"magento/module-re-captcha-purchase-order"}],"packages":["magento/module-re-captcha-purchase-order"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8","2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9"],"mage-os":[]},"unknownVersions":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1","2.4.0-p1","2.4.0","2.3.7-p4","2.3.7-p3","2.3.7-p2","2.3.7-p1","2.3.7","2.3.6-p1","2.3.6","2.3.5-p2","2.3.5-p1","2.3.5","2.3.4-p2","2.3.4-p1","2.3.4","2.3.3-p2","2.3.3","2.3.2-p2","2.3.2-p1","2.3.2","2.3.1","2.3.0"],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8","2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9"],"mage-os":[]},"conditions":{"and":[{"type":"config","path":"checkout/options/enable_agreements","match":"1"},{"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-65223 details"}