agents -_-
This commit is contained in:
@@ -56,6 +56,7 @@ data class BookingListItem(
|
||||
val guestId: String? = null,
|
||||
val guestName: String? = null,
|
||||
val guestPhone: String? = null,
|
||||
val vehicleNumbers: List<String> = emptyList(),
|
||||
val roomNumbers: List<Int> = emptyList(),
|
||||
val source: String? = null,
|
||||
val fromCity: String? = null,
|
||||
|
||||
@@ -59,7 +59,7 @@ fun BookingCreateScreen(
|
||||
val checkOutTime = remember { mutableStateOf("11:00") }
|
||||
val checkInNow = remember { mutableStateOf(true) }
|
||||
val sourceMenuExpanded = remember { mutableStateOf(false) }
|
||||
val sourceOptions = listOf("WALKIN", "OTA", "AGENT")
|
||||
val sourceOptions = listOf("DIRECT", "AGENT")
|
||||
val relationMenuExpanded = remember { mutableStateOf(false) }
|
||||
val relationOptions = listOf("FRIENDS", "FAMILY", "GROUP", "ALONE")
|
||||
val transportMenuExpanded = remember { mutableStateOf(false) }
|
||||
|
||||
@@ -12,7 +12,7 @@ data class BookingCreateState(
|
||||
val expectedCheckOutAt: String = "",
|
||||
val billingMode: BookingBillingMode = BookingBillingMode.PROPERTY_POLICY,
|
||||
val billingCheckoutTime: String = "",
|
||||
val source: String = "WALKIN",
|
||||
val source: String = "DIRECT",
|
||||
val fromCity: String = "",
|
||||
val toCity: String = "",
|
||||
val memberRelation: String = "",
|
||||
|
||||
@@ -253,10 +253,6 @@ private fun CheckedInBookingCard(
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant
|
||||
)
|
||||
}
|
||||
val source = booking.source?.takeIf { it.isNotBlank() }
|
||||
if (source != null) {
|
||||
Text(text = source, style = MaterialTheme.typography.bodySmall)
|
||||
}
|
||||
val expectedCount = booking.expectedGuestCount
|
||||
val totalCount = booking.totalGuestCount
|
||||
val countLine = when {
|
||||
@@ -281,6 +277,14 @@ private fun CheckedInBookingCard(
|
||||
color = MaterialTheme.colorScheme.error
|
||||
)
|
||||
}
|
||||
val vehicleNumbers = booking.vehicleNumbers.filter { it.isNotBlank() }
|
||||
if (vehicleNumbers.isNotEmpty()) {
|
||||
Spacer(modifier = Modifier.height(6.dp))
|
||||
Text(
|
||||
text = vehicleNumbers.joinToString(", "),
|
||||
style = MaterialTheme.typography.bodySmall
|
||||
)
|
||||
}
|
||||
val checkInAt = booking.checkInAt?.takeIf { it.isNotBlank() }
|
||||
val checkOutAt = booking.expectedCheckOutAt?.takeIf { it.isNotBlank() }
|
||||
if (checkInAt != null && checkOutAt != null) {
|
||||
|
||||
Reference in New Issue
Block a user