This article provides a patch for the known issue of a purchase order (PO) discount not being applied in Magento 2.4.0 B2B. If the PO was placed with a discount code that expired while the PO was in the approval process, the approved order does not reflect the discount.
Affected products and versions
- Magento Commerce Cloud 2.4.0
- Magento Commerce 2.4.0
Prerequisites : a discount coupon is created, and approval rules preventing POs from being processed automatically exist.
Steps to reproduce:
- Place a PO with a discount applied.
- Deactivate the discount coupon.
- Approve PO as a manager.
- Check the order created as a result.
Order is created with a discounted total.
Order is created for the full amount.
Apply the patch provided in this article.
The patch is attached to this article. To download it, scroll down to the end of the article and click the file name, or click the following link:
The patch is also available for download in both,
.composer , formats on Magento Commerce Downloads page, under Patches in the left column navigation. Search for XXX patch.
How to apply the patch
See How to apply a composer patch provided by Magento for instructions.