mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
update latest currencies
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
|||||||
const ParentAccountCurrencyPlaceholder = "---"
|
const ParentAccountCurrencyPlaceholder = "---"
|
||||||
|
|
||||||
// AllCurrencyNames represents all currency name in ISO 4217
|
// AllCurrencyNames represents all currency name in ISO 4217
|
||||||
|
// Reference: https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml
|
||||||
var AllCurrencyNames = map[string]bool{
|
var AllCurrencyNames = map[string]bool{
|
||||||
"AED": true, //UAE Dirham
|
"AED": true, //UAE Dirham
|
||||||
"AFN": true, //Afghani
|
"AFN": true, //Afghani
|
||||||
@@ -65,7 +66,6 @@ var AllCurrencyNames = map[string]bool{
|
|||||||
"GYD": true, //Guyana Dollar
|
"GYD": true, //Guyana Dollar
|
||||||
"HKD": true, //Hong Kong Dollar
|
"HKD": true, //Hong Kong Dollar
|
||||||
"HNL": true, //Lempira
|
"HNL": true, //Lempira
|
||||||
"HRK": true, //Kuna
|
|
||||||
"HTG": true, //Gourde
|
"HTG": true, //Gourde
|
||||||
"HUF": true, //Forint
|
"HUF": true, //Forint
|
||||||
"IDR": true, //Rupiah
|
"IDR": true, //Rupiah
|
||||||
@@ -132,9 +132,8 @@ var AllCurrencyNames = map[string]bool{
|
|||||||
"SEK": true, //Swedish Krona
|
"SEK": true, //Swedish Krona
|
||||||
"SGD": true, //Singapore Dollar
|
"SGD": true, //Singapore Dollar
|
||||||
"SHP": true, //Saint Helena Pound
|
"SHP": true, //Saint Helena Pound
|
||||||
"SLE": true, //Leone (new leone)
|
"SLE": true, //Leone
|
||||||
"SLL": true, //Leone (old leone)
|
"SOS": true, //Somali Shilling
|
||||||
"SOS": true, //Somalian shilling
|
|
||||||
"SRD": true, //Surinam Dollar
|
"SRD": true, //Surinam Dollar
|
||||||
"SSP": true, //South Sudanese Pound
|
"SSP": true, //South Sudanese Pound
|
||||||
"STN": true, //Dobra
|
"STN": true, //Dobra
|
||||||
@@ -154,9 +153,8 @@ var AllCurrencyNames = map[string]bool{
|
|||||||
"UGX": true, //Uganda Shilling
|
"UGX": true, //Uganda Shilling
|
||||||
"USD": true, //US Dollar
|
"USD": true, //US Dollar
|
||||||
"UYU": true, //Peso Uruguayo
|
"UYU": true, //Peso Uruguayo
|
||||||
"UZS": true, //Uzbekistani sum
|
"UZS": true, //Uzbekistan Sum
|
||||||
"VED": true, //Bolívar Digital
|
"VED": true, //Bolívar Soberano
|
||||||
"VEF": true, //Bolívar Fuerte
|
|
||||||
"VES": true, //Bolívar Soberano
|
"VES": true, //Bolívar Soberano
|
||||||
"VND": true, //Dong
|
"VND": true, //Dong
|
||||||
"VUV": true, //Vatu
|
"VUV": true, //Vatu
|
||||||
@@ -165,9 +163,11 @@ var AllCurrencyNames = map[string]bool{
|
|||||||
"XCD": true, //East Caribbean Dollar
|
"XCD": true, //East Caribbean Dollar
|
||||||
"XOF": true, //CFA Franc BCEAO
|
"XOF": true, //CFA Franc BCEAO
|
||||||
"XPF": true, //CFP Franc
|
"XPF": true, //CFP Franc
|
||||||
|
"XSU": true, //Sucre
|
||||||
"YER": true, //Yemeni Rial
|
"YER": true, //Yemeni Rial
|
||||||
"ZAR": true, //Rand
|
"ZAR": true, //Rand
|
||||||
"ZMW": true, //Zambian Kwacha
|
"ZMW": true, //Zambian Kwacha
|
||||||
|
"ZWG": true, //Zimbabwe Gold
|
||||||
"ZWL": true, //Zimbabwe Dollar
|
"ZWL": true, //Zimbabwe Dollar
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+13
-16
@@ -2,6 +2,7 @@ const parentAccountCurrencyPlaceholder = '---';
|
|||||||
const defaultCurrencySymbol = '¤';
|
const defaultCurrencySymbol = '¤';
|
||||||
|
|
||||||
// ISO 4217
|
// ISO 4217
|
||||||
|
// Reference: https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml
|
||||||
const allCurrencies = {
|
const allCurrencies = {
|
||||||
'AED': { // UAE Dirham
|
'AED': { // UAE Dirham
|
||||||
code: 'AED',
|
code: 'AED',
|
||||||
@@ -227,10 +228,6 @@ const allCurrencies = {
|
|||||||
code: 'HNL',
|
code: 'HNL',
|
||||||
symbol: 'L'
|
symbol: 'L'
|
||||||
},
|
},
|
||||||
'HRK': { // Kuna
|
|
||||||
code: 'HRK',
|
|
||||||
symbol: 'kn'
|
|
||||||
},
|
|
||||||
'HTG': { // Gourde
|
'HTG': { // Gourde
|
||||||
code: 'HTG',
|
code: 'HTG',
|
||||||
symbol: 'G'
|
symbol: 'G'
|
||||||
@@ -495,15 +492,11 @@ const allCurrencies = {
|
|||||||
code: 'SHP',
|
code: 'SHP',
|
||||||
symbol: '£'
|
symbol: '£'
|
||||||
},
|
},
|
||||||
'SLE': { // Leone (new leone)
|
'SLE': { // Leone
|
||||||
code: 'SLE',
|
code: 'SLE',
|
||||||
symbol: 'Le'
|
symbol: 'Le'
|
||||||
},
|
},
|
||||||
'SLL': { // Leone (old leone)
|
'SOS': { // Somali Shilling
|
||||||
code: 'SLL',
|
|
||||||
symbol: 'Le'
|
|
||||||
},
|
|
||||||
'SOS': { // Somalian shilling
|
|
||||||
code: 'SOS',
|
code: 'SOS',
|
||||||
symbol: 'Sh.So.'
|
symbol: 'Sh.So.'
|
||||||
},
|
},
|
||||||
@@ -583,17 +576,13 @@ const allCurrencies = {
|
|||||||
code: 'UYU',
|
code: 'UYU',
|
||||||
symbol: '$'
|
symbol: '$'
|
||||||
},
|
},
|
||||||
'UZS': { // Uzbekistani sum
|
'UZS': { // Uzbekistan Sum
|
||||||
code: 'UZS'
|
code: 'UZS'
|
||||||
},
|
},
|
||||||
'VED': { // Bolívar Digital
|
'VED': { // Bolívar Soberano
|
||||||
code: 'VED',
|
code: 'VED',
|
||||||
symbol: 'Bs.D'
|
symbol: 'Bs.D'
|
||||||
},
|
},
|
||||||
'VEF': { // Bolívar Fuerte
|
|
||||||
code: 'VEF',
|
|
||||||
symbol: 'Bs.F'
|
|
||||||
},
|
|
||||||
'VES': { // Bolívar Soberano
|
'VES': { // Bolívar Soberano
|
||||||
code: 'VES',
|
code: 'VES',
|
||||||
symbol: 'Bs.S'
|
symbol: 'Bs.S'
|
||||||
@@ -623,6 +612,10 @@ const allCurrencies = {
|
|||||||
'XPF': { // CFP Franc
|
'XPF': { // CFP Franc
|
||||||
code: 'XPF'
|
code: 'XPF'
|
||||||
},
|
},
|
||||||
|
'XSU': { // Sucre
|
||||||
|
code: 'XSU',
|
||||||
|
symbol: 'S/.'
|
||||||
|
},
|
||||||
'YER': { // Yemeni Rial
|
'YER': { // Yemeni Rial
|
||||||
code: 'YER',
|
code: 'YER',
|
||||||
symbol: 'ر.ي'
|
symbol: 'ر.ي'
|
||||||
@@ -635,6 +628,10 @@ const allCurrencies = {
|
|||||||
code: 'ZMW',
|
code: 'ZMW',
|
||||||
symbol: 'K'
|
symbol: 'K'
|
||||||
},
|
},
|
||||||
|
'ZWG': { // Zimbabwe Gold
|
||||||
|
code: 'ZWG',
|
||||||
|
symbol: 'ZiG'
|
||||||
|
},
|
||||||
'ZWL': { // Zimbabwe Dollar
|
'ZWL': { // Zimbabwe Dollar
|
||||||
code: 'ZWL',
|
code: 'ZWL',
|
||||||
symbol: '$'
|
symbol: '$'
|
||||||
|
|||||||
+3
-3
@@ -386,7 +386,6 @@ export default {
|
|||||||
'GYD': 'Guyanese dollar',
|
'GYD': 'Guyanese dollar',
|
||||||
'HKD': 'Hong Kong dollar',
|
'HKD': 'Hong Kong dollar',
|
||||||
'HNL': 'Honduran lempira',
|
'HNL': 'Honduran lempira',
|
||||||
'HRK': 'Croatian kuna',
|
|
||||||
'HTG': 'Haitian gourde',
|
'HTG': 'Haitian gourde',
|
||||||
'HUF': 'Hungarian forint',
|
'HUF': 'Hungarian forint',
|
||||||
'IDR': 'Indonesian rupiah',
|
'IDR': 'Indonesian rupiah',
|
||||||
@@ -450,11 +449,10 @@ export default {
|
|||||||
'SBD': 'Solomon Islands dollar',
|
'SBD': 'Solomon Islands dollar',
|
||||||
'SCR': 'Seychelles rupee',
|
'SCR': 'Seychelles rupee',
|
||||||
'SDG': 'Sudanese pound',
|
'SDG': 'Sudanese pound',
|
||||||
'SEK': 'Swedish krona/kronor',
|
'SEK': 'Swedish krona',
|
||||||
'SGD': 'Singapore dollar',
|
'SGD': 'Singapore dollar',
|
||||||
'SHP': 'Saint Helena pound',
|
'SHP': 'Saint Helena pound',
|
||||||
'SLE': 'Sierra Leonean leone',
|
'SLE': 'Sierra Leonean leone',
|
||||||
'SLL': 'Sierra Leonean leone (old leone)',
|
|
||||||
'SOS': 'Somalian shilling',
|
'SOS': 'Somalian shilling',
|
||||||
'SRD': 'Surinamese dollar',
|
'SRD': 'Surinamese dollar',
|
||||||
'SSP': 'South Sudanese pound',
|
'SSP': 'South Sudanese pound',
|
||||||
@@ -486,9 +484,11 @@ export default {
|
|||||||
'XCD': 'East Caribbean dollar',
|
'XCD': 'East Caribbean dollar',
|
||||||
'XOF': 'CFA franc BCEAO',
|
'XOF': 'CFA franc BCEAO',
|
||||||
'XPF': 'CFP franc',
|
'XPF': 'CFP franc',
|
||||||
|
'XSU': 'Ecuadorian sucre',
|
||||||
'YER': 'Yemeni rial',
|
'YER': 'Yemeni rial',
|
||||||
'ZAR': 'South African rand',
|
'ZAR': 'South African rand',
|
||||||
'ZMW': 'Zambian kwacha',
|
'ZMW': 'Zambian kwacha',
|
||||||
|
'ZWG': 'Zimbabwe gold',
|
||||||
'ZWL': 'Zimbabwean dollar',
|
'ZWL': 'Zimbabwean dollar',
|
||||||
},
|
},
|
||||||
'category': {
|
'category': {
|
||||||
|
|||||||
@@ -386,7 +386,6 @@ export default {
|
|||||||
'GYD': '圭亚那元',
|
'GYD': '圭亚那元',
|
||||||
'HKD': '港元',
|
'HKD': '港元',
|
||||||
'HNL': '洪都拉斯伦皮拉',
|
'HNL': '洪都拉斯伦皮拉',
|
||||||
'HRK': '克罗地亚库纳',
|
|
||||||
'HTG': '海地古德',
|
'HTG': '海地古德',
|
||||||
'HUF': '匈牙利福林',
|
'HUF': '匈牙利福林',
|
||||||
'IDR': '印度尼西亚盾',
|
'IDR': '印度尼西亚盾',
|
||||||
@@ -454,7 +453,6 @@ export default {
|
|||||||
'SGD': '新加坡元',
|
'SGD': '新加坡元',
|
||||||
'SHP': '圣赫勒拿镑',
|
'SHP': '圣赫勒拿镑',
|
||||||
'SLE': '塞拉利昂利昂',
|
'SLE': '塞拉利昂利昂',
|
||||||
'SLL': '塞拉利昂利昂 (旧利昂)',
|
|
||||||
'SOS': '索马里先令',
|
'SOS': '索马里先令',
|
||||||
'SRD': '苏里南元',
|
'SRD': '苏里南元',
|
||||||
'SSP': '南苏丹镑',
|
'SSP': '南苏丹镑',
|
||||||
@@ -486,9 +484,11 @@ export default {
|
|||||||
'XCD': '东加勒比元',
|
'XCD': '东加勒比元',
|
||||||
'XOF': '非洲金融共同体法郎',
|
'XOF': '非洲金融共同体法郎',
|
||||||
'XPF': '太平洋法郎',
|
'XPF': '太平洋法郎',
|
||||||
|
'XSU': '厄瓜多尔苏克雷',
|
||||||
'YER': '也门里亚尔',
|
'YER': '也门里亚尔',
|
||||||
'ZAR': '南非兰特',
|
'ZAR': '南非兰特',
|
||||||
'ZMW': '赞比亚克瓦查',
|
'ZMW': '赞比亚克瓦查',
|
||||||
|
'ZWG': '津巴布韦金',
|
||||||
'ZWL': '津巴布韦元',
|
'ZWL': '津巴布韦元',
|
||||||
},
|
},
|
||||||
'category': {
|
'category': {
|
||||||
|
|||||||
Reference in New Issue
Block a user