ACSD-52287: Status of archived orders does not change

The ACSD-52287 patch fixes the issue where status of archived orders does not change from completed to closed on grid after the credit memo was submitted. This patch is available when the Quality Patches Tool (QPT) 1.1.38 is installed. The patch ID is ACSD-52287. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.7.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.5-p2

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.3.7 - 2.4.6-p2
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 status of archived orders does not change from completed to closed on grid after the credit memo was submitted.

Steps to reproduce:

  1. Configure Asynchronous Indexing.

    • On the Admin sidebar, go to Stores > Settings > Configuration.
    • In the left panel, expand the Advanced section and choose Developer underneath.
    • Expand the Grid Settings section.
    • Set Asynchronous indexing to Yes.
    • Click Save Config.
  2. Configure the Order Archive.

    • On the Admin sidebar, go to Stores > Settings > Configuration.
    • In the left panel, expand the Sales section and choose Sales underneath.
    • Expand the Orders, Invoices, Shipments, Credit Memos Archiving section.
    • Set Enable Archiving to Yes (Leave rest of the configurations as default).
    • Click Save Config.
  3. Place an order in the frontend.

  4. Run the cron for order to appear in the Admin Order Grid.

  5. Invoice and Ship the order to update the order status to Complete.

  6. Run the cron to update the Sales Order Grid with the latest order status.

  7. Archive the order.

  8. Go to the Archived order grid.

  9. Open the archived order and refund the order offline by creating a Credit Memo to make the Order status: Closed.

  10. Run the cron for a few times.

  11. Check the Archived order grid for the new order status.

Expected results:

The order is displayed as Closed.

Actual results:

The order is displayed as Complete.

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:

For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a