feat: refs#8678 ticketAdvance

This commit is contained in:
Sergio De la torre 2025-03-24 12:42:25 +01:00
parent 3ec49358ad
commit d3679ae52c
1 changed files with 6 additions and 0 deletions

View File

@ -22,12 +22,14 @@ import es.verdnatura.presentation.view.feature.collection.mapper.map
import es.verdnatura.presentation.view.feature.sacador.model.CollectionVO
import es.verdnatura.presentation.view.feature.sacador.model.MistakeTypeListVO
import es.verdnatura.presentation.view.feature.sacador.model.MistakeTypeVO
import es.verdnatura.presentation.view.feature.ticket.fragment.TicketViewModel
import es.verdnatura.presentation.view.feature.workermistake.model.SaleMistakeSalix
import retrofit2.Response
class CollectionCheckerViewModel(val context: Context) : BaseViewModel(context) {
private val getItemFromBarcodeUseCase = GetItemFromBarcodeUseCase(salix)
private val collectionViewModelChecker = CollectionViewModel(context)
private val ticketViewModel = TicketViewModel(context)
//var isPaused: Boolean = false
@ -366,4 +368,8 @@ class CollectionCheckerViewModel(val context: Context) : BaseViewModel(context)
)
}
fun ticketAdvance(ticketFk: Number, workerFk: Number) {
ticketViewModel.ticketExits(ticketFk, workerFk)
}
}