MDVA-33970 patch: currency sign in credit memo

The MDVA-33970 patch solves the issue where a Dollar ($) sign was shown instead of the localized currency in a credit memo. This occurs when a Website scope is used for a Price attribute.

This patch is available when the Quality Patches Tool (QPT) 1.0.15 is installed. Please note that the issue is scheduled to be fixed in Adobe Commerce version 2.4.3.

Affected products and versions

The patch is created for Adobe Commerce version: Adobe Commerce on cloud infrastructure 2.3.4-p2

Compatible with Adobe Commerce versions: Adobe Commerce on cloud infrastructure and Adobe Commerce on-premises 2.3.4 - 2.4.1-p1

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

Preconditions:

For this example, these settings are used:

  • 2 Websites exist - each has a Store and a Store View.

  • The Default Config has the Singapore Dollar as Currency (Stores > Configuration > General > Currency Setup):

    • Base Currency = Singapore Dollar
    • Default Display Currency = Singapore Dollar
    • Allowed Currencies = Singapore Dollar
  • Website 1 has a Default Config.

  • Website 2 has the Malaysian Ringgit as Currency:

    • Base Currency = Malaysian Ringgit
    • Default Display Currency = Malaysian Ringgit
    • Allowed Currencies = Malaysian Ringgit
  • Go to Stores > Currency Symbols, and Set:

    • MYR (Malaysian Ringgit) = RM
    • SGD (Singapore Dollar) = SGD (Use Standard = Checked)
  • Some Product exists.

Steps to reproduce:

  1. Make an Order from the Website 2 (you can set up it as Default in order to avoid additional settings).
  2. Login to Admin.
  3. Open the newly created order.
  4. Check that the Currency Symbol = RM.
  5. Create an Invoice.
  6. Check that the Currency Symbol = RM in the invoice.
  7. Create a Credit Memo.
  8. Check that the Currency Symbol ** ** = RM in the Credit Memo.
  9. Open the Credit Memos tab in Order.
  10. Check the Currency Symbol in the grid.
  11. Open Sales > Credit Memos.
  12. Check the Currency Symbol in the grid.

Expected results:

The correct localized currency symbol is used, as expected.

Actual results:

The Dollar ($) sign is used, even though it is not setup in the Admin settings.

Apply the patch

To apply individual patches, use the following links, depending on your Adobe Commerce product:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT tool, refer to the Patches available in QPT tool section.

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