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:
parent
0973600efa
commit
5b5171ab1d
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 = "",
|
||||
|
|
Loading…
Reference in New Issue