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
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:
- Make an Order from the Website 2 (you can set up it as Default in order to avoid additional settings).
- Login to Admin.
- Open the newly created order.
- Check that the Currency Symbol = RM.
- Create an Invoice.
- Check that the Currency Symbol = RM in the invoice.
- Create a Credit Memo.
- Check that the Currency Symbol ** ** = RM in the Credit Memo.
- Open the Credit Memos tab in Order.
- Check the Currency Symbol in the grid.
- Open Sales > Credit Memos.
- 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:
- Adobe Commerce or Magento Open Source on-premises: Software Update Guide > Apply Patches in our developer documentation.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in our developer documentation.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches in our support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in our support knowledge base.
For info about other patches available in QPT tool, refer to the Patches available in QPT tool section.