Also implemented an identifier for AccountTransaction

This commit is contained in:
dankito 2024-09-03 22:23:52 +02:00
parent a9ebad0793
commit 85b66aa040
1 changed files with 4 additions and 0 deletions

View File

@ -66,5 +66,9 @@ open class AccountTransaction(
val reference: String
get() = sepaReference ?: unparsedReference
open val identifier by lazy {
"$amount $currency $bookingDate $valueDate $unparsedReference $sepaReference $otherPartyName $otherPartyBankCode $otherPartyAccountId"
}
override fun toString() = "${valueDate.dayOfMonth}.${valueDate.monthNumber}.${valueDate.year} ${amount.toString().padStart(4, ' ')} ${if (currency == "EUR") "€" else currency} ${otherPartyName ?: ""} - $reference"
}