Added AccountTransaction.showOtherPartyName()
This commit is contained in:
parent
4012c6105f
commit
b4fc9d837f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue