If otherPartyName is not set showing postingText instead

This commit is contained in:
dankito 2024-09-11 16:29:20 +02:00
parent d98cbb2363
commit d618556f5b
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ fun TransactionListItem(user: User?, transaction: AccountTransactionViewModel, i
} }
Text( Text(
text = transaction.otherPartyName ?: "", text = transaction.otherPartyName ?: transaction.postingText ?: "",
Modifier.fillMaxWidth(), Modifier.fillMaxWidth(),
fontWeight = FontWeight.Bold, fontWeight = FontWeight.Bold,
maxLines = 1, maxLines = 1,

View File

@ -16,7 +16,7 @@ data class AccountTransactionViewModel(
val valueDate: LocalDate, val valueDate: LocalDate,
val otherPartyName: String? = null, val otherPartyName: String? = null,
val bookingText: String? = null, val postingText: String? = null,
val userSetDisplayName: String? = null, val userSetDisplayName: String? = null,
val category: String? = null val category: String? = null
) { ) {