[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

ACSD-64209: Cron scheduler retrieves negotiable quotes without excluding Ordered quotes

The ACSD-64209 patch fixes the issue where the cron scheduler retrieves all negotiable quotes without excluding those with the status Ordered, causing an email or emails to be triggered. This patch is available when the Quality Patches Tool (QPT) 1.1.61 is installed. The patch ID is ACSD-64209. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.8.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.7-p3

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.4 - 2.4.7-p4
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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

The cron scheduler retrieves all negotiable quotes without excluding those with the status Ordered, causing an email or emails to be triggered.

Steps to reproduce:

  1. On the Admin sidebar, go to Stores > Settings > Configuration > B2B Features and enable Company and B2B Quote.
  2. Set Default Expiration Period to 1 in Admin > Stores > Settings > Configuration > Sales > Quotes > General.
  3. Create a company, activate it, and log in as the company admin.
  4. Add a product to the cart.
  5. Request a quote.
  6. On the Admin sidebar, go to Sales > Quotes.
  7. Select the created quote, and click Send to send the quote back to the buyer.
  8. Log in as the company admin on the storefront.
  9. Select the quote and click Proceed to checkout to complete the purchase.
  10. Check that the status of the quote is Ordered and no more actions are possible on the storefront.
  11. Trigger the negotiable_quote_send_emails cron job.

Expected results:

Since the quote has been ordered and no further actions can be taken, no emails about the quote expiration should be sent.

Actual results:

An email Quote expires soon is sent.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3