Version 7.5.1 Se deja ticket_checkFullyControlled en lugar de ticketOrCollection y se permite que sea nulo el subname y packingType de tickettopreprepare

This commit is contained in:
Sergio De la torre 2022-01-13 17:10:18 +01:00
parent 0973600efa
commit 5b5171ab1d
6 changed files with 13 additions and 13 deletions

View File

@ -58,14 +58,14 @@ class GetSacadorControladorUserCase(context: Context) : RestClient(context) {
params
)
}
fun ticketOrCollection_checkFullyControlled(
fun ticket_checkFullyControlled(
usuario: String,
password: String,
collectionFk: String
): Call<String> {
val params: ArrayList<String> = ArrayList()
params.add(collectionFk)
return restClient!!.ticketOrCollection_checkFullyControlled(
return restClient!!.ticket_checkFullyControlled(
"json",
"1",
usuario,

View File

@ -180,7 +180,7 @@ interface VerdnaturaService {
Call<CollectionVO>*/
@POST("almacennew/ticket_checkFullyControlled")//REVISADA
fun ticketOrCollection_checkFullyControlled(
fun ticket_checkFullyControlled(
@Header("aplicacion") aplicacion: String,
@Header("version") version: String,
@Header("user") user: String,

View File

@ -136,11 +136,11 @@ class CollectionFragment(
//sergio: comprueba si viene de la pantalla de controlador
viewModel.ticketOrCollection_checkFullyControlled(
viewModel.ticket_checkFullyControlled(
user,
password,
collection.collectionFk,
"ticketOrCollection_checkFullyControlled"
"ticket_checkFullyControlled"
)
workerFkFromTicket = collection.tickets.get(0).sales.get(0).workerFk
}
@ -967,11 +967,11 @@ class CollectionFragment(
)
if (type.equals(CONTROLADOR)) {
viewModel.ticketOrCollection_checkFullyControlled(
viewModel.ticket_checkFullyControlled(
user,
password,
txtscan,
"ticketOrCollection_checkFullyControlled"
"ticket_checkFullyControlled"
)
}
// } else {

View File

@ -892,13 +892,13 @@ class CollectionViewModel(context: Context) : BaseViewModel()
})
}
fun ticketOrCollection_checkFullyControlled(
fun ticket_checkFullyControlled(
usuario: String,
password: String,
collectionFk: String,callFunction:String
)
{
getSacadorControladorUserCase.ticketOrCollection_checkFullyControlled(
getSacadorControladorUserCase.ticket_checkFullyControlled(
usuario,
password,
collectionFk

View File

@ -5,9 +5,9 @@ import es.verdnatura.presentation.view.feature.sacador.model.PlacementVO
class PreSacadorItemVO (
var id : String = "",
var itemFk : String = "",
var packingType: String="",
var packingType: String?="",
var longName : String = "",
var subName : String = "",
var subName : String? = "",
var quantity : Int = 0,
var saldo : Int = 0,
var picked : Int = 45,

View File

@ -47,7 +47,7 @@ class SaleVO(
var clientFk: String = "",
var originalQuantity: String = "",
var line1: String = "",
var line2: String = "",
var line2: String? = "",
var line3: String = "",
var isAdded: String = "",
var pickedQuantity: String = "",
@ -56,7 +56,7 @@ class SaleVO(
var Barcodes: List<String> = listOf(),
var isNew: Boolean = false,
var salePersonFk: String = "",
var packingType: String = "",
var packingType: String? = "",
var cel1: String = "",
var cel2: String = "",
var cel3: String = "",