fix: correct RSD decimal digits#14698
Conversation
🦋 Changeset detectedLatest commit: e737c64 The changes in this PR will be included in the next version bump. This PR includes changesets to release 76 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Someone is attempting to deploy a commit to the medusajs Team on Vercel. A member of the Team first needs to authorize it. |
|
Hello @vukdavidovic thanks for the PR. Though, I have found some resources indicating Serbian Dinar no longer has decimals, since |
|
Thanks for the review @NicolasGorga |
Summary
What — What changes are introduced in this PR?
Updated the default currency metadata to set RSD decimal digits to 2 and synced the admin dashboard currency data.
Why — Why are these changes relevant or necessary?
RSD was configured with decimal_digits: 0, which rounded all prices to whole numbers and prevented fractional values (e.g., 150.52).
How — How have these changes been implemented?
Adjusted RSD.decimal_digits in the core currency defaults and updated the generated dashboard currency list.
Testing — How have these changes been tested, or how can the reviewer test the feature?
Not run (data-only change).
Examples
Example usage
Previously: 150.52 RSD would round to 151 or 150
Now: 150.52 is preserved with 2 decimals
Checklist
Please ensure the following before requesting a review:
yarn changesetand follow the promptsAdditional Context
Fixes #14697.
Note
Low Risk
Low risk data-only change that updates currency metadata; impact is limited to how RSD amounts are formatted/rounded in the core utils and dashboard.
Overview
Fixes Serbian Dinar (RSD) currency metadata to use
decimal_digits: 2(instead of0) so fractional prices are preserved rather than rounded to whole numbers.Updates both the core
defaultCurrenciesin@medusajs/utilsand the auto-generated admin dashboardcurrencieslist, and adds a changeset bumping@medusajs/utilsand@medusajs/dashboardas patch releases.Written by Cursor Bugbot for commit e737c64. This will update automatically on new commits. Configure here.