ACSD-65223: Manually selected terms and agreements for B2B purchase orders result in an error
The ACSD-65223 patch fixes the issue where orders created using Purchase Orders can’t be completed with online payment methods like credit cards when terms and conditions are required for checkout. This patch is available when the Quality Patches Tool (QPT) 1.1.64 is installed. The patch ID is ACSD-65223.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) B2B 1.5.1
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) B2B 1.5.1
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
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.
Steps to reproduce:
- Create a simple product.
- Go to Stores > Settings > Configuration > General and choose B2B Features.
- Set Enable Company and Enable Purchase Orders to Yes.
- Go to Stores > Settings > Terms and Conditions and create a new condition. Set Applied to Manually.
- Go to Stores > Settings > Configuration > Sales > Checkout and set Enable Terms and Conditions to Yes.
- Go to Stores > Settings > Configuration > Sales > Payment Methods and configure Braintree.
- On the storefront, create a company.
- In the admin, go to Customers > Companies.
- Approve the company and allow Purchase Orders.
- On the frontend, log in to the account.
- Add an item to the cart.
- Place an order using Purchase Order.
- In the customer dashboard, click the Purchase Orders tab.
- Create an order from the new purchase order. Then select credit card as the payment method.
- Agree to the terms and conditions.
- Place the order.
Expected results:
You are able to place an order using an online payment method on approved purchase orders when terms and conditions are required for checkout.
Actual results:
You can’t place an order using an online payment method on approved purchase orders when terms and conditions are required for checkout.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.