Skip to content

Commit

Permalink
Merge pull request #13 from mohorev/belarusian-ruble
Browse files Browse the repository at this point in the history
Fix BYR subunits and add new BYN currency
  • Loading branch information
jcmanzo authored Jan 29, 2020
2 parents e317377 + 99db313 commit f503033
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 f503033

Please sign in to comment.