roomStays: show rates

This commit is contained in:
androidlover5842
2026-02-05 13:05:43 +05:30
parent 1e5f412f82
commit 90c2b6fb9f
2 changed files with 10 additions and 1 deletions

View File

@@ -12,5 +12,7 @@ data class ActiveRoomStayDto(
val roomTypeName: String? = null,
val fromAt: String? = null,
val checkinAt: String? = null,
val expectedCheckoutAt: String? = null
val expectedCheckoutAt: String? = null,
val nightlyRate: Long? = null,
val currency: String? = null
)

View File

@@ -71,6 +71,13 @@ internal fun RoomStayListSection(
if (!timeLine.isNullOrBlank()) {
Text(text = timeLine, style = MaterialTheme.typography.bodySmall)
}
stay.nightlyRate?.let { nightlyRate ->
val currency = stay.currency?.takeIf { it.isNotBlank() } ?: "INR"
Text(
text = "Nightly rate: $currency $nightlyRate",
style = MaterialTheme.typography.bodySmall
)
}
val roomStayId = stay.roomStayId.orEmpty()
val canCheckoutThisStay = canShowRoomStayCheckoutButton(
canCheckOutRoomStay = canCheckOutRoomStay,