Also implemented an identifier for AccountTransaction
This commit is contained in:
parent
a9ebad0793
commit
85b66aa040
|
@ -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"
|
||||
}
|
Loading…
Reference in New Issue