feat roadMap #refs 7296

This commit is contained in:
Sergio De la torre 2024-06-18 12:41:00 +02:00
parent ebb0e6bc31
commit b796623e13
2 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ class ExpeditionTruckListFragment :
}
private fun customDialogActionTruck() {
viewModel.expeditionTruckAdd(
viewModel.roadMapStopAdd(
customDialogHor.getHoraValue(), customDialogHor.getDestinoValue()
)
customDialogHor.dismiss()

View File

@ -25,7 +25,7 @@ class ExpeditionTruckListViewModel(val context: Context) : BaseViewModel(context
val loadResponseExpeditionAdd: LiveData<Event<String>> = _response.map { Event(it) }
fun expeditionTruckList() {
salix.expeditionTruckGet(
salix.roadMapStopGet(
"""{"where": { "eta": {
"between": ["${LocalDate.now().atTime(LocalTime.MIN)}",
"${
@ -39,8 +39,8 @@ class ExpeditionTruckListViewModel(val context: Context) : BaseViewModel(context
})
}
fun expeditionTruckAdd(vHour: String, vDescription: String) {
salix.expeditionTrucksInsert(
fun roadMapStopAdd(vHour: String, vDescription: String) {
salix.roadMapStopAdd(
ExpeditionTruckSalix(
eta = "${LocalDate.now()} $vHour",
description = vDescription