From a6b2ed8729feac7468ee7b1bbc965a1e89e97c7d Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 12 Sep 2024 13:17:01 +0200 Subject: [PATCH] Added identifier --- .../codinux/banking/client/model/securitiesaccount/Holding.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/securitiesaccount/Holding.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/securitiesaccount/Holding.kt index 1dcb84a4..469439f2 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/securitiesaccount/Holding.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/securitiesaccount/Holding.kt @@ -45,5 +45,7 @@ open class Holding( val buyingDate: LocalDate? = null, ) { + val identifier: String by lazy { "${isin}_$wkn" } + override fun toString() = "$name $totalBalance $currency" } \ No newline at end of file