go-money icon indicating copy to clipboard operation
go-money copied to clipboard

There is no ZWL currency

Open dkasenka opened this issue 2 years ago • 2 comments

Hi guys

I've found out that the library doesn't include ZWL. https://github.com/Rhymond/go-money/blob/master/currency.go#L48

ZWL must replace ZWD according to ISO_4217: https://en.wikipedia.org/wiki/ISO_4217

Please fix it.

dkasenka avatar Jun 06 '23 12:06 dkasenka

Hi

Thanks, you can create PR and include missing currency. Please create a new record in the list to keep backwards compatibility, I think for now we should keep both currencies.

Rhymond avatar Jun 07 '23 09:06 Rhymond

Also ZWD code must be 716 instead of 932 932 is for ZWL

dkasenka avatar Jun 07 '23 15:06 dkasenka