Skip to content

Commit

Permalink
Fix BYR subunits and add new BYN currency
Browse files Browse the repository at this point in the history
  • Loading branch information
mohorev committed Jan 22, 2020
1 parent e317377 commit 99db313
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion money/currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Currency(Enum):
BTN = 'BTN'
BWP = 'BWP'
BYR = 'BYR'
BYN = 'BYN'
BZD = 'BZD'
CAD = 'CAD'
CDF = 'CDF'
Expand Down Expand Up @@ -338,9 +339,15 @@ class CurrencyHelper:
'sub_unit': 100,
},
Currency.BYR: {
'display_name': 'Belarussian Ruble',
'display_name': 'Belarusian Ruble',
'numeric_code': 974,
'default_fraction_digits': 0,
'sub_unit': 1,
},
Currency.BYN: {
'display_name': 'Belarusian Ruble',
'numeric_code': 933,
'default_fraction_digits': 2,
'sub_unit': 100,
},
Currency.BZD: {
Expand Down

0 comments on commit 99db313

Please sign in to comment.