fix: incorrect default fraction for USD (#17415)

fix: correct fraction for El Salvador
This commit is contained in:
Ankush Menat 2022-07-05 19:51:58 +05:30 committed by GitHub
parent 18af7da807
commit aed9d22609
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -842,7 +842,7 @@
"El Salvador": {
"code": "sv",
"currency": "USD",
"currency_fraction": "Centavo",
"currency_fraction": "Cent",
"currency_fraction_units": 100,
"smallest_currency_fraction_value": 0.01,
"currency_name": "Dolar estadounidense",

View file

@ -4,5 +4,10 @@
# pre loaded
import frappe
from frappe.tests.utils import FrappeTestCase
test_records = frappe.get_test_records("Currency")
class TestUser(FrappeTestCase):
def test_default_currency_on_setup(self):
usd = frappe.get_doc("Currency", "USD")
self.assertDocumentEqual({"enabled": 1, "fraction": "Cent"}, usd)