-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong scale for RUB currency #6519
Comments
@aldeed since we have deprecated |
@trojanh The issue appears to still exist in the new |
The same thing happens with CLP (chilean peso), but in this case i cant remove scale = 0 since we don't use decimal places with money. The same thing happens in reaction-admin (imports/utils/formatMoney.js#L23) and the component-library (package/src/utils/formatMoney.js#L23) |
Hi @dtaipov! :) Is there anyone assigned to this issue? |
Hey, i wanted to contribute to this issue. |
Hi @aldeed and team, I’d like to work on this issue. Here’s my proposed approach: Understand the problem: Analyze the fix: Apply the fix: Test thoroughly: Submit a pull request: Please assign this issue to me. Let me know if there are any specific guidelines or preferred solutions to consider. Thanks! |
Prices in Russian rubles appears 100 times as much as their correct values.
For example, a price "$12.99 - $29.99" shows up in rubles like "75490 - 1 74284 руб."
Correct values should be "754,90 - 1 742,84 руб."
Reproduces on the main page and the product details pages.
Fixed this in local database by removing "scale: 0" property from meteor.Shops.currencies.RUB
with query:
db.Shops.updateMany({}, {$unset: {"currencies.RUB.scale": ""}})
Versions:
Node: 6.11.0
NPM: 3.10.10
Meteor Node: 4.8.4
Meteor NPM: 4.6.1
Reaction CLI: 0.19.0
Reaction: 1.5.4
Reaction branch: master
The text was updated successfully, but these errors were encountered: