Skip to content
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

feat: add VES currency #139

Merged

Conversation

PabloReszczynski
Copy link
Contributor

Closes #138

currency.go Outdated
@@ -203,6 +203,7 @@ var currencies = Currencies{
UYU: {Decimal: ".", Thousand: ",", Code: UYU, Fraction: 2, NumericCode: "858", Grapheme: "$U", Template: "$1"},
UZS: {Decimal: ".", Thousand: ",", Code: UZS, Fraction: 2, NumericCode: "860", Grapheme: "so\u2019m", Template: "$1"},
VEF: {Decimal: ".", Thousand: ",", Code: VEF, Fraction: 2, NumericCode: "928", Grapheme: "Bs", Template: "$1"},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note this currency has the wrong numeric code, which would make it fail in case the function CurrencyByNumericCode is used, because it has the same value as the newly added VES currency.

func (c Currencies) CurrencyByNumericCode(code string) *Currency {

The correct value for VEF is 937 according to https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-three.xml (https://www.six-group.com/en/products-services/financial-information/data-standards.html)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'm changing that on the PR.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sk-!

@Rhymond
Copy link
Owner

Rhymond commented Nov 14, 2023

Thanks for contribution! Going to create new release in a bit

@Rhymond Rhymond merged commit beeb1fa into Rhymond:master Nov 14, 2023
4 checks passed
@PabloReszczynski PabloReszczynski deleted the feat/pabloreszczynski/ves-currency branch November 23, 2023 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request support for Bolívar Soverano (VES)
3 participants