feat reservas #refs 6861

This commit is contained in:
Sergio De la torre 2024-05-28 10:56:14 +02:00
parent e478176c4a
commit d996f06fd4
2 changed files with 42 additions and 0 deletions

View File

@ -73,6 +73,12 @@ class PreSacadorViewModel(val context: Context) : BaseViewModel(context) {
val collectionList: LiveData<CollectionListVO>
get() = _collectionList
private val _responseHasSaleRerserved by lazy { MutableLiveData<String>() }
val responseHasSaleRerserved: LiveData<String> = _responseHasSaleRerserved
val loadResponseHasSaleReserved: LiveData<Event<String>> =
_responseHasSaleRerserved.map { Event(it) }
private val _responseSaleGroupAdd by lazy { MutableLiveData<ResponseItemVO>() }
val responseSaleGroupAdd: LiveData<ResponseItemVO>
get() = _responseSaleGroupAdd
@ -284,6 +290,15 @@ class PreSacadorViewModel(val context: Context) : BaseViewModel(context) {
})
}
fun hasSalesReserved(sectorCollectionFk: Int) {
salix.hasSalesReserved(sectorCollectionFk)
.enqueue(object : SalixCallback<String>(context) {
override fun onSuccess(response: Response<String>) {
_responseHasSaleRerserved.value =response.body()
}
})
}
fun sectorCollection_new(
sectorFk: Int
) {

View File

@ -789,5 +789,32 @@
<string name="routeTxtDouble">R:%1$d C:%2$d</string>
<string name="subTitleRouteDouble">%1$d/%2$d</string>
<string name="ready">Preparar</string>
<string name="titleDeliveryTruck">Reparto camiones</string>
<string name="deliveryNote">Reparto:%1$s</string>
<string name="deliveryDriverNote">Repartidor:%1$s</string>
<string name="messageInternetError">Sans internet. Vérifiez votre couverture, vos données ou le Wi-Fi.</string>
<string name="filterRoadMap">Filtrar roadMaps</string>
<string name="stops">Paradas</string>
<string name="doublePointText">%1$s : %2$s</string>
<string name="eta">eta</string>
<string name="scanPallets">Escanear pallet</string>
<string name="countTxt">%1$d/%2$d</string>
<string name="filter">Filtrar</string>
<string name="actions">Acciones</string>
<string name="palletTruckLoad">Carga pallets al camión</string>
<string name="palletTruckUnLoad">Descarga en parada</string>
<string name="printPalletNewRoute">Imprime etiqueta pallet con las nuevas rutas</string>
<string name="titleChangeCategory">Cambiar a A2</string>
<string name="price">Precio propuesto:</string>
<string name="itemData">Datos del item</string>
<string name="scanForLoadTruck">Escanear para cargar</string>
<string name="scanForUnloadTruck">Escanear para descargar</string>
<string name="itemDetails">Ver datos y precio</string>
<string name="scanItemShelving">Escanea item y el carro donde se ubica</string>
<string name="quantityTxt">Cantidad:</string>
<string name="priceBigger">El precio no puede ser mayor</string>
<string name="quantityBigger">La cantidad no puede ser mayor</string>
<string name="errorChangeCategory">Error al cambiar categoría</string>
<string name="palletNotFound">Pallet no encontrado</string>
</resources>