roomStays: show rates
This commit is contained in:
@@ -12,5 +12,7 @@ data class ActiveRoomStayDto(
|
|||||||
val roomTypeName: String? = null,
|
val roomTypeName: String? = null,
|
||||||
val fromAt: String? = null,
|
val fromAt: String? = null,
|
||||||
val checkinAt: String? = null,
|
val checkinAt: String? = null,
|
||||||
val expectedCheckoutAt: String? = null
|
val expectedCheckoutAt: String? = null,
|
||||||
|
val nightlyRate: Long? = null,
|
||||||
|
val currency: String? = null
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -71,6 +71,13 @@ internal fun RoomStayListSection(
|
|||||||
if (!timeLine.isNullOrBlank()) {
|
if (!timeLine.isNullOrBlank()) {
|
||||||
Text(text = timeLine, style = MaterialTheme.typography.bodySmall)
|
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 roomStayId = stay.roomStayId.orEmpty()
|
||||||
val canCheckoutThisStay = canShowRoomStayCheckoutButton(
|
val canCheckoutThisStay = canShowRoomStayCheckoutButton(
|
||||||
canCheckOutRoomStay = canCheckOutRoomStay,
|
canCheckOutRoomStay = canCheckOutRoomStay,
|
||||||
|
|||||||
Reference in New Issue
Block a user