From 2dfe338a8c3d9cc19589be132da17e34f6672d4f Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 13 Dec 2024 00:07:08 +0100 Subject: [PATCH] Updated to new k-i18n data --- .../main/kotlin/net/codinux/invoicing/model/codes/Country.kt | 2 +- .../main/kotlin/net/codinux/invoicing/parser/CodeGenerator.kt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/model/codes/Country.kt b/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/model/codes/Country.kt index 7555736..dbce08e 100644 --- a/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/model/codes/Country.kt +++ b/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/model/codes/Country.kt @@ -51,7 +51,7 @@ enum class Country(val alpha2Code: String, val alpha3Code: String?, val englishN CocosKeelingIslands("CC", "CCK", "Cocos (Keeling) Islands (the)"), Colombia("CO", "COL", "Colombia"), Comoros("KM", "COM", "Comoros (the)"), - CongoDemocraticRepublic("CD", "COD", "Congo (the Democratic Republic of the)"), + Congo_DemocraticRepublic("CD", "COD", "Congo (the Democratic Republic of the)"), Congo("CG", "COG", "Congo (the)"), CookIslands("CK", "COK", "Cook Islands (the)"), CostaRica("CR", "CRI", "Costa Rica"), diff --git a/e-invoice-spec-parser/src/main/kotlin/net/codinux/invoicing/parser/CodeGenerator.kt b/e-invoice-spec-parser/src/main/kotlin/net/codinux/invoicing/parser/CodeGenerator.kt index cb7e5a7..f7daa06 100644 --- a/e-invoice-spec-parser/src/main/kotlin/net/codinux/invoicing/parser/CodeGenerator.kt +++ b/e-invoice-spec-parser/src/main/kotlin/net/codinux/invoicing/parser/CodeGenerator.kt @@ -224,7 +224,6 @@ class CodeGenerator { } private fun fixCurrencyName(currencyName: Any?): String = when (currencyName) { - "Sierra Leone (new valuation 2022)" -> "SierraLeone_NewValuation2022" "BolĂ­var Soberano, new valuation" -> "BolivarSoberano_NewValuation" else -> currencyName.toString().replace(" ", "") }