If otherPartyName is not set showing postingText instead
This commit is contained in:
parent
d98cbb2363
commit
d618556f5b
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue