Added AccountTransaction.showOtherPartyName()

This commit is contained in:
dankl 2020-01-11 23:21:42 +01:00 committed by dankito
parent 4012c6105f
commit b4fc9d837f
2 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,10 @@ open class AccountTransaction(
internal constructor() : this(0.toBigDecimal(),"", "", Date(), null, null, null, null, BankAccount())
val showOtherPartyName: Boolean
get() = otherPartyName.isNullOrBlank() == false /* && type != "ENTGELTABSCHLUSS" && type != "AUSZAHLUNG" */ // TODO
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is AccountTransaction) return false

View File

@ -38,6 +38,7 @@ open class AccountTransactionAdapter
viewHolder.txtvwBookingText.text = item.bookingText ?: ""
viewHolder.txtvwOtherPartyName.visibility = if (item.showOtherPartyName) View.VISIBLE else View.GONE
viewHolder.txtvwOtherPartyName.text = item.otherPartyName ?: ""
viewHolder.txtvwUsage1.text = item.usage