diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml
new file mode 100644
index 00000000..76fa549c
--- /dev/null
+++ b/.idea/deploymentTargetDropDown.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index c79f8105..39a6c5ed 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -181,9 +181,9 @@
-
+
-
+
diff --git a/app/build.gradle b/app/build.gradle
index b8d262fb..967cc682 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -14,13 +14,10 @@ android {
applicationId "es.verdnatura"
minSdkVersion 21
targetSdkVersion 30
- versionCode 116
- versionName "8.3" //versionCode 116: versionCode 116: cambios finales en return, diseño grafico...
- //versionName "8.2" //versionCode 115: icons
- //versionName "8.2" //versionCode 114 : TEST DISSENY GRAFIC SOLUCIONAT COLORS
- //versionName "8.2" //versionCode 113 : TEST DISSENY GAFIC
- //versionName "8.2" //versionCode 112 : desmarcar, previa update quantity dels carros, afegir P, etc.., impressores
- //versionName "8.1" //versionCode 111 de proves . Instal.lat a Ismael y Juan
+ versionCode 117
+ versionName "8.4Beta" //versionCode 117: return i workerAppTester
+ //versionName "8.3" //versionCode 116: versionCode 116: cambios finales en return, diseño grafico...
+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json
index 6c8aaf10..db082180 100644
--- a/app/release/output-metadata.json
+++ b/app/release/output-metadata.json
@@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
- "versionCode": 116,
- "versionName": "8.3",
+ "versionCode": 117,
+ "versionName": "8.4Beta",
"outputFile": "app-release.apk"
}
],
diff --git a/app/release/vn-picking.apk b/app/release/vn-pickingBeta.apk
similarity index 55%
rename from app/release/vn-picking.apk
rename to app/release/vn-pickingBeta.apk
index fffefead..7580bb6c 100644
Binary files a/app/release/vn-picking.apk and b/app/release/vn-pickingBeta.apk differ
diff --git a/app/src/main/java/es/verdnatura/domain/ApiSalixUtils.kt b/app/src/main/java/es/verdnatura/domain/ApiSalixUtils.kt
index 41601483..5d409d21 100644
--- a/app/src/main/java/es/verdnatura/domain/ApiSalixUtils.kt
+++ b/app/src/main/java/es/verdnatura/domain/ApiSalixUtils.kt
@@ -6,7 +6,7 @@ import retrofit2.converter.gson.GsonConverterFactory
class ApiSalixUtils {
companion object {
//const val BASE_URL:String = "http://192.168.1.155:9009/"
- // const val BASE_URL: String = "https://test-salix.verdnatura.es/api/"
+ // const val BASE_URL: String = "https://test-salix.verdnatura.es/api/"
const val BASE_URL: String = "https://salix.verdnatura.es/api/"
fun getApiService(): SalixService {
val salixRetrofit = Retrofit.Builder().baseUrl(BASE_URL).addConverterFactory(
diff --git a/app/src/main/java/es/verdnatura/domain/GetInventaryUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetInventaryUserCase.kt
index fd43a140..5c105507 100644
--- a/app/src/main/java/es/verdnatura/domain/GetInventaryUserCase.kt
+++ b/app/src/main/java/es/verdnatura/domain/GetInventaryUserCase.kt
@@ -66,7 +66,7 @@ class GetInventaryUserCase(context: Context) : RestClient(context) {
password: String,
itemFk: String,
warehouseFk: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(itemFk)
params.add(warehouseFk)
diff --git a/app/src/main/java/es/verdnatura/domain/GetItemCardUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetItemCardUserCase.kt
index 9363b9b5..ad20ff04 100644
--- a/app/src/main/java/es/verdnatura/domain/GetItemCardUserCase.kt
+++ b/app/src/main/java/es/verdnatura/domain/GetItemCardUserCase.kt
@@ -81,14 +81,15 @@ class GetItemCardUserCase(context: Context) : RestClient(context) {
warehouseFk: String,
newVisible: String,
isTrash: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(itemFk)
params.add(warehouseFk)
params.add(newVisible)
params.add(isTrash)
- //sergio: se modifica por CAU a itemTrash// Faltas también accede a itemStockUpdate ( falta comprobar porque no aparece nada más)
+ //sergio: se modifica por CAU a itemTrash// Faltas también accede a itemStockUpdate)
+
//return restClient!!.itemStockUpdate("json","1",usuario,password,"application/json",params = params)
return restClient!!.itemTrash(
"json",
@@ -107,7 +108,7 @@ class GetItemCardUserCase(context: Context) : RestClient(context) {
warehouseFk: String,
newVisible: String,
isTrash: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(itemFk)
params.add(warehouseFk)
@@ -123,7 +124,7 @@ class GetItemCardUserCase(context: Context) : RestClient(context) {
)
}
- fun itemPlacementSave(
+ /* fun itemPlacementSave(
usuario: String,
password: String,
itemFk: String,
@@ -142,7 +143,7 @@ class GetItemCardUserCase(context: Context) : RestClient(context) {
"application/json",
params = params
)
- }
+ }*/
fun updateGrouping(
usuario: String,
@@ -185,7 +186,7 @@ class GetItemCardUserCase(context: Context) : RestClient(context) {
params = params
)
}
-
+/*
fun updatePackingType(
usuario: String,
password: String,
@@ -203,7 +204,7 @@ class GetItemCardUserCase(context: Context) : RestClient(context) {
"application/json",
params = params
)
- }
+ }*/
fun updatePackingTypeSalix(
token:String,
@@ -224,7 +225,7 @@ class GetItemCardUserCase(context: Context) : RestClient(context) {
password: String,
itemFk: String,
value: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(itemFk)
params.add(value)
@@ -264,7 +265,7 @@ class GetItemCardUserCase(context: Context) : RestClient(context) {
itemFk: String,
value: String,
delete: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(value)
params.add(itemFk)
diff --git a/app/src/main/java/es/verdnatura/domain/GetPaletizadoresUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetPaletizadoresUserCase.kt
index 34c9c7a1..087a0ecf 100644
--- a/app/src/main/java/es/verdnatura/domain/GetPaletizadoresUserCase.kt
+++ b/app/src/main/java/es/verdnatura/domain/GetPaletizadoresUserCase.kt
@@ -87,7 +87,7 @@ class GetPaletizadoresUserCase(context: Context) : RestClient(context) {
password: String,
vHour: String,
vDescription: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(vHour)
params.add(vDescription)
@@ -143,7 +143,7 @@ class GetPaletizadoresUserCase(context: Context) : RestClient(context) {
password: String,
vPalletFk: String,
vExpeditionFk: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(vPalletFk)
params.add(vExpeditionFk)
@@ -193,7 +193,7 @@ class GetPaletizadoresUserCase(context: Context) : RestClient(context) {
)
}
- fun expeditionPalletDel(usuario: String, password: String, vPalletFk: String): Call {
+ fun expeditionPalletDel(usuario: String, password: String, vPalletFk: String): Call {
val params: ArrayList = ArrayList()
params.add(vPalletFk)
return restClient!!.expeditionPalletDel(
@@ -223,7 +223,7 @@ class GetPaletizadoresUserCase(context: Context) : RestClient(context) {
)
}
- fun expeditionScanDel(usuario: String, password: String, vScanFk: String): Call {
+ fun expeditionScanDel(usuario: String, password: String, vScanFk: String): Call {
val params: ArrayList = ArrayList()
params.add(vScanFk)
return restClient!!.expeditionScanDel(
@@ -241,7 +241,7 @@ class GetPaletizadoresUserCase(context: Context) : RestClient(context) {
password: String,
vPalletFk: String,
vSectorFk: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(vPalletFk)
params.add(vSectorFk)
diff --git a/app/src/main/java/es/verdnatura/domain/GetPreSacadorUseCase.kt b/app/src/main/java/es/verdnatura/domain/GetPreSacadorUseCase.kt
index 1603c7d1..e1e0636a 100644
--- a/app/src/main/java/es/verdnatura/domain/GetPreSacadorUseCase.kt
+++ b/app/src/main/java/es/verdnatura/domain/GetPreSacadorUseCase.kt
@@ -48,7 +48,7 @@ class GetPreSacadorUseCase(context: Context) : RestClient(context) {
password: String,
id: String,
quantity: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(id)
params.add(quantity)
diff --git a/app/src/main/java/es/verdnatura/domain/GetQualityUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetQualityUserCase.kt
index 135c33ab..53536626 100644
--- a/app/src/main/java/es/verdnatura/domain/GetQualityUserCase.kt
+++ b/app/src/main/java/es/verdnatura/domain/GetQualityUserCase.kt
@@ -33,7 +33,7 @@ class GetQualityUserCase(context: Context) : RestClient(context) {
password: String,
vId: String,
vStars: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(vId)
params.add(vStars)
diff --git a/app/src/main/java/es/verdnatura/domain/GetSacadorControladorUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetSacadorControladorUserCase.kt
index 0417e0f6..f0861187 100644
--- a/app/src/main/java/es/verdnatura/domain/GetSacadorControladorUserCase.kt
+++ b/app/src/main/java/es/verdnatura/domain/GetSacadorControladorUserCase.kt
@@ -203,7 +203,7 @@ class GetSacadorControladorUserCase(context: Context) : RestClient(context) {
itemShelvingFk: String,
saleFk: String,
quantity: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(itemShelvingFk)
params.add(saleFk)
@@ -224,7 +224,7 @@ class GetSacadorControladorUserCase(context: Context) : RestClient(context) {
itemShelvingFk: String,
itemPlacementSupplyFk: String,
quantity: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(itemShelvingFk)
params.add(itemPlacementSupplyFk)
@@ -362,7 +362,7 @@ class GetSacadorControladorUserCase(context: Context) : RestClient(context) {
saleFk: String,
quantity: String,
originalQuantity: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(saleFk)
params.add(quantity)
@@ -378,7 +378,7 @@ class GetSacadorControladorUserCase(context: Context) : RestClient(context) {
type: String,
warehouseFk: String,
originalQuantity: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(saleFk)
params.add(quantity)
@@ -395,7 +395,7 @@ class GetSacadorControladorUserCase(context: Context) : RestClient(context) {
)
}
- fun saleTrackingDel(usuario: String, password: String, saleFk: String): Call {
+ fun saleTrackingDel(usuario: String, password: String, saleFk: String): Call {
val params: ArrayList = ArrayList()
params.add(saleFk)
return restClient!!.saleTrackingDel(
@@ -484,7 +484,7 @@ class GetSacadorControladorUserCase(context: Context) : RestClient(context) {
password: String,
saleFk: String,
quantity: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(saleFk)
params.add(quantity)
@@ -522,7 +522,7 @@ class GetSacadorControladorUserCase(context: Context) : RestClient(context) {
vSaleFk: String,
vUserFk: String,
vTypeFk: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(vSaleFk)
params.add(vUserFk)
diff --git a/app/src/main/java/es/verdnatura/domain/GetUbicadorUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetUbicadorUserCase.kt
index 861c4471..ee255dd8 100644
--- a/app/src/main/java/es/verdnatura/domain/GetUbicadorUserCase.kt
+++ b/app/src/main/java/es/verdnatura/domain/GetUbicadorUserCase.kt
@@ -32,7 +32,7 @@ class GetUbicadorUserCase(context: Context) : RestClient(context) {
packing: String,
warehouse: String,
grouping:String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(shelving)
params.add(item)
@@ -63,7 +63,7 @@ class GetUbicadorUserCase(context: Context) : RestClient(context) {
itemShelvingFk: String,
grouping:String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(shelving)
params.add(item)
@@ -90,7 +90,7 @@ class GetUbicadorUserCase(context: Context) : RestClient(context) {
shelving: String,
items: List,
warehouse: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(shelving)
params.add(items)
@@ -110,7 +110,7 @@ class GetUbicadorUserCase(context: Context) : RestClient(context) {
password: String,
priority: String,
shelving: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(priority)
params.add(shelving)
@@ -136,7 +136,7 @@ class GetUbicadorUserCase(context: Context) : RestClient(context) {
return restClient!!.shelvingPark("json", "1", usuario, password, "application/json", params)
}
- fun saleParking_add(
+ /* fun saleParking_add(
usuario: String,
password: String,
sales:List,
@@ -146,14 +146,14 @@ class GetUbicadorUserCase(context: Context) : RestClient(context) {
params.add(sales)
params.add(parking)
return restClient!!.saleParking_add("json", "1", usuario, password, "application/json", params)
- }
+ }*/
fun shelvingChange(
usuario: String,
password: String,
origen: String,
destino: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(origen)
params.add(destino)
@@ -167,7 +167,7 @@ class GetUbicadorUserCase(context: Context) : RestClient(context) {
)
}
- fun clearShelvingList(usuario: String, password: String, shelvingFk: String): Call {
+ fun clearShelvingList(usuario: String, password: String, shelvingFk: String): Call {
val params: ArrayList = ArrayList()
params.add(shelvingFk)
return restClient!!.clearShelvingList(
@@ -185,7 +185,7 @@ class GetUbicadorUserCase(context: Context) : RestClient(context) {
password: String,
itemFk: String,
shelvingFk: String
- ): Call {
+ ): Call {
val params: ArrayList = ArrayList()
params.add(itemFk)
params.add(shelvingFk)
@@ -199,7 +199,7 @@ class GetUbicadorUserCase(context: Context) : RestClient(context) {
)
}
- fun itemShelvingDelete(usuario: String, password: String, itemFk: String): Call {
+ fun itemShelvingDelete(usuario: String, password: String, itemFk: String): Call {
val params: ArrayList = ArrayList()
params.add(itemFk)
return restClient!!.itemShelvingDelete(
diff --git a/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt b/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt
index b3feb20d..7d24fa18 100644
--- a/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt
+++ b/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt
@@ -1,5 +1,6 @@
package es.verdnatura.domain
+//import es.verdnatura.presentation.view.feature.buscaritemall.model.ItemLocationAll
import com.google.gson.JsonObject
import es.verdnatura.presentation.view.feature.ajustes.model.Printers
import es.verdnatura.presentation.view.feature.ajustes.model.SectorItemVO
@@ -7,11 +8,9 @@ import es.verdnatura.presentation.view.feature.articulo.model.ItemCardVO
import es.verdnatura.presentation.view.feature.articulo.model.ItemPackingType
import es.verdnatura.presentation.view.feature.articulo.model.ItemProposal
import es.verdnatura.presentation.view.feature.buscaritem.model.ItemLocationVO
-//import es.verdnatura.presentation.view.feature.buscaritemall.model.ItemLocationAll
import es.verdnatura.presentation.view.feature.calidad.model.BuyerVO
import es.verdnatura.presentation.view.feature.calidad.model.ItemBuyerVO
import es.verdnatura.presentation.view.feature.collection.SalesModified
-import es.verdnatura.presentation.view.feature.collection.SalesModifiedList
import es.verdnatura.presentation.view.feature.diadeventa.model.ItemShelvingSaleDate
import es.verdnatura.presentation.view.feature.faltas.model.ItemFaltasVO
import es.verdnatura.presentation.view.feature.historicoarticulo.model.ItemHistoricoVO
@@ -145,7 +144,7 @@ interface VerdnaturaService {
@Header("user") user: String,
@Header("pass") pass: String,
@Header("Content-Type") content_type: String,
- @Body params:List
+ @Body params: List
):
Call
@@ -156,7 +155,7 @@ interface VerdnaturaService {
@Header("user") user: String,
@Header("pass") pass: String,
@Header("Content-Type") content_type: String,
- @Body params:List
+ @Body params: List
):
Call
@@ -214,7 +213,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
//SACADORES / CONTROLADORES ========================================================================>
@POST("almacennew/collectionGet") //NO SALIX
@@ -293,16 +292,16 @@ interface VerdnaturaService {
):
Call
- /* @POST("almacennew/collectionTicketGet")//REVISADA-ANULADA POT collection_getTickets
- fun collectionTicketGet(
- @Header("aplicacion") aplicacion: String,
- @Header("version") version: String,
- @Header("user") user: String,
- @Header("pass") pass: String,
- @Header("Content-Type") content_type: String,
- @Body params: List
- ):
- Call*/
+ /* @POST("almacennew/collectionTicketGet")//REVISADA-ANULADA POT collection_getTickets
+ fun collectionTicketGet(
+ @Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List
+ ):
+ Call*/
@POST("almacennew/ticket_checkFullyControlled")//NO SALIX
fun ticket_checkFullyControlled(
@@ -360,16 +359,16 @@ interface VerdnaturaService {
):
Call
- /* @POST("almacennew/saleTracking_update")//REVISADA
- fun saleTracking_update(
- @Header("aplicacion") aplicacion: String,
- @Header("version") version: String,
- @Header("user") user: String,
- @Header("pass") pass: String,
- @Header("Content-Type") content_type: String,
- @Body params: List
- ):
- Call*/
+ /* @POST("almacennew/saleTracking_update")//REVISADA
+ fun saleTracking_update(
+ @Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List
+ ):
+ Call*/
@POST("almacennew/itemPlacementSupplyAiming")//REVISADA
fun itemPlacementSupplyAiming(
@@ -391,7 +390,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/itemShelvingPlacementSupplyAdd")//REVISADA
fun itemShelvingPlacementSupplyAdd(
@@ -402,7 +401,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/collectionStickerPrint")//REVISADA
fun collectionStickerPrint(
@@ -449,17 +448,17 @@ interface VerdnaturaService {
):
Call
- /*sergio:modificada en el caso de que quiera utilizarse por item_Card
- @POST("almacennew/itemGetAvailable")//REVISADA
- fun itemGetAvailable(
- @Header("aplicacion") aplicacion: String,
- @Header("version") version: String,
- @Header("user") user: String,
- @Header("pass") pass: String,
- @Header("Content-Type") content_type: String,
- @Body params: List
- ):
- Call*/
+ /*sergio:modificada en el caso de que quiera utilizarse por item_Card
+ @POST("almacennew/itemGetAvailable")//REVISADA
+ fun itemGetAvailable(
+ @Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List
+ ):
+ Call*/
@POST("almacennew/collectionAddItem")//REVISADA
fun collectionAddItem(
@@ -481,7 +480,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/collectionMissingTrash")//REVISADA
fun collectionMissingTrash(
@@ -492,7 +491,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/saleTrackingDel")//REVISADA
fun saleTrackingDel(
@@ -503,7 +502,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/itemShelving_updateFromSale")//REVISADA
fun itemShelving_updateFromSale(
@@ -559,7 +558,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/saleMistakeAdd")//REVISADA
fun saleMistakeAdd(
@@ -570,7 +569,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/workerMistake_Add")//REVISADA
fun workerMistake_Add(
@@ -612,7 +611,7 @@ interface VerdnaturaService {
@Header("pass") pass: String,
@Header("Content-Type") content_type: String,
- ):
+ ):
Call>
@POST("almacennew/worker_getFromHasMistake")//REVISADA
@@ -673,18 +672,18 @@ interface VerdnaturaService {
):
Call>
- /* @POST("almacennew/itemStockUpdate")//REVISADA
- fun itemStockUpdate(
- @Header("aplicacion") aplicacion: String,
- @Header("version") version: String,
- @Header("user") user: String,
- @Header("pass") pass: String,
- @Header("Content-Type") content_type: String,
- @Body params: List
- ):
- Call*/
+ /* @POST("almacennew/itemStockUpdate")//REVISADA
+ fun itemStockUpdate(
+ @Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List
+ ):
+ Call*/
- @POST("almacennew/itemTrash")//REVISADA
+ @POST("almacennew/itemTrash")//REVISADA
fun itemTrash(
@Header("aplicacion") aplicacion: String,
@Header("version") version: String,
@@ -693,9 +692,9 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
- @POST("almacennew/item_placement_save")//REVISADA
+ /* @POST("almacennew/item_placement_save")//REVISADA
fun itemPlacementSave(
@Header("aplicacion") aplicacion: String,
@Header("version") version: String,
@@ -704,7 +703,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call*/
@POST("almacennew/buy_updateGrouping")//REVISADA
fun updateGrouping(
@@ -728,7 +727,7 @@ interface VerdnaturaService {
):
Call
- @POST("almacennew/update_ItemPackingType")//REVISADA
+ /* @POST("almacennew/update_ItemPackingType")//REVISADA
fun updatePackingType(
@Header("aplicacion") aplicacion: String,
@Header("version") version: String,
@@ -737,7 +736,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call*/
@POST("almacennew/itemSaveMin")//REVISADA
fun itemSaveMin(
@@ -748,7 +747,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/item_saveReference")//REVISADA
fun item_saveReference(
@@ -758,7 +757,7 @@ interface VerdnaturaService {
@Header("pass") pass: String,
@Header("Content-Type") content_type: String,
@Body params: List
- ):
+ ):
Call
@POST("almacennew/barcodes_edit")//REVISADA
@@ -770,7 +769,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
//BUSCAR ITEM ========================================================================>
@POST("almacennew/getItemUbication")//REVISADA
@@ -799,17 +798,17 @@ interface VerdnaturaService {
//INVENTARIO ========================================================================>
- /* @POST("almacennew/itemShelvingRadar")//REVISADA
- fun itemShelvingRadar(
- @Header("aplicacion") aplicacion: String,
- @Header("version") version: String,
- @Header("user") user: String,
- @Header("pass") pass: String,
- @Header("Content-Type") content_type: String,
- @Body params: List
- ):
- Call>
-*/
+ /* @POST("almacennew/itemShelvingRadar")//REVISADA
+ fun itemShelvingRadar(
+ @Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List
+ ):
+ Call>
+ */
@POST("almacennew/itemShelving_filterBuyer")//REVISADA
fun itemShelvingRadarFilterBuyer(
@Header("aplicacion") aplicacion: String,
@@ -841,7 +840,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
//SHELVING PARKING ========================================================================>
@POST("almacennew/shelvingParking_get")//REVISADA
@@ -879,7 +878,6 @@ interface VerdnaturaService {
Call
-
@POST("almacennew/workerMachinery_isRegistered")//REVISADA
fun workerMachinery_isRegistered(
@Header("aplicacion") aplicacion: String,
@@ -957,7 +955,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/itemShelvingMake")//REVISADA
fun itemShelvingMake(
@@ -968,7 +966,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/itemShelvingMakeEdit")//REVISADA
fun itemShelvingMakeEdit(
@@ -979,7 +977,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/itemShelvingMake_multi")//REVISADA
fun itemShelvingMake_multi(
@@ -990,9 +988,9 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
- @POST("almacennew/saleParking_add")//REVISADA
+ /* @POST("almacennew/saleParking_add")//REVISADA
fun saleParking_add(
@Header("aplicacion") aplicacion: String,
@Header("version") version: String,
@@ -1001,7 +999,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call*/
@POST("almacennew/shelvingPark")//REVISADA
@@ -1024,7 +1022,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/clearShelvingList")//REVISADA
fun clearShelvingList(
@@ -1035,7 +1033,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/itemShelvingTransfer")//REVISADA
fun itemShelvingTransfer(
@@ -1046,7 +1044,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/itemShelvingDelete")//REVISADA
fun itemShelvingDelete(
@@ -1057,7 +1055,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
//BUFFER ==============================================================================>
@@ -1130,7 +1128,7 @@ interface VerdnaturaService {
@Header("pass") pass: String,
@Header("Content-Type") content_type: String,
@Body params: List
- ):
+ ):
Call
@POST("almacennew/itemShelving_getSaleDate")//REVISADA
@@ -1141,7 +1139,7 @@ interface VerdnaturaService {
@Header("pass") pass: String,
@Header("Content-Type") content_type: String,
@Body params: List
- ):
+ ):
Call>
@POST("almacennew/itemShelvingLog_get")//REVISADA
@@ -1152,7 +1150,7 @@ interface VerdnaturaService {
@Header("pass") pass: String,
@Header("Content-Type") content_type: String,
@Body params: List
- ):
+ ):
Call>
@POST("almacennew/shelvingLog_get")//REVISADA
@@ -1163,7 +1161,7 @@ interface VerdnaturaService {
@Header("pass") pass: String,
@Header("Content-Type") content_type: String,
@Body params: List
- ):
+ ):
Call>
@POST("almacennew/itemShelving_updateSpam")//REVISADA
@@ -1174,7 +1172,7 @@ interface VerdnaturaService {
@Header("pass") pass: String,
@Header("Content-Type") content_type: String,
@Body params: List
- ):
+ ):
Call
@@ -1197,7 +1195,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/expeditionPalletList")//REVISADA
fun expeditionPallet_List(
@@ -1230,7 +1228,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/checkRouteExpeditionScanPut")//REVISADA
fun checkRouteExpeditionScanPut(
@@ -1263,7 +1261,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/expeditionScanList")//REVISADA
fun expeditionScanList(
@@ -1285,7 +1283,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/expeditionPalletPrintSet")//REVISADA
fun expeditionPalletPrintSet(
@@ -1296,7 +1294,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
@POST("almacennew/expeditionState_addByPallet")//REVISADA
fun expeditionState_addByPallet(
@@ -1352,7 +1350,7 @@ interface VerdnaturaService {
@Header("Content-Type") content_type: String,
@Body params: List
):
- Call
+ Call
//SMARTTAGS ========================================================================>
@POST("almacennew/workerShelving_add")//REVISADA
diff --git a/app/src/main/java/es/verdnatura/presentation/common/ResponseItemVO.kt b/app/src/main/java/es/verdnatura/presentation/common/ResponseItemVO.kt
index 65b8851f..158ee638 100644
--- a/app/src/main/java/es/verdnatura/presentation/common/ResponseItemVO.kt
+++ b/app/src/main/java/es/verdnatura/presentation/common/ResponseItemVO.kt
@@ -4,14 +4,14 @@ class ResponseItemVO(
var response: String = "",
var isError: Boolean = false,
var errorMessage: String = ""
- )
+)
class ResponseItemMachineControl(
var response: String = "",
var isError: Boolean = false,
var errorMessage: String = "",
var type: String
- )
+)
class DataMessageSalix(
var ticket: String = "",
@@ -19,9 +19,9 @@ class DataMessageSalix(
var quantity: String = "",
var personSale: String = ""
- )
+)
class GeneralItem(
- var code:String? = "",
- var text:String? = ""
-)
\ No newline at end of file
+ var code: String? = "",
+ var text: String? = ""
+)
diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/fragment/AjustesViewModel.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/fragment/AjustesViewModel.kt
index a2ff9776..b708f726 100644
--- a/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/fragment/AjustesViewModel.kt
+++ b/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/fragment/AjustesViewModel.kt
@@ -43,7 +43,8 @@ class AjustesViewModel(context: Context) : BaseViewModel() {
private val _printerList by lazy { MutableLiveData() }
val printerList: LiveData
- get() = _printerList
+ get
+ () = _printerList
val loadSectorList = Transformations.map(_sectorList) {Event(it)}
diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/model/AjustesItemVO.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/model/AjustesItemVO.kt
index f1cf4b63..4303cc9f 100644
--- a/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/model/AjustesItemVO.kt
+++ b/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/model/AjustesItemVO.kt
@@ -1,7 +1,5 @@
package es.verdnatura.presentation.view.feature.ajustes.model
-import es.verdnatura.presentation.view.feature.historicovehiculo.model.ItemHistoricoVehiculo
-
class AjustesItemVO (
var id: Int,
var title: String = "",
diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemCardFragment.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemCardFragment.kt
index cd87c954..3aa0ea6d 100644
--- a/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemCardFragment.kt
+++ b/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemCardFragment.kt
@@ -633,8 +633,8 @@ class ItemCardFragment(
user = user,
password = password,
newValue = value,
- isTrash = "0",
- "itemTrash"
+ isTrash = "0"
+
)
//changeOfflineValue(itemB,value, listBarcodes)
showProgress()
@@ -647,8 +647,8 @@ class ItemCardFragment(
user = user,
password = password,
newValue = value,
- isTrash = "1",
- "itemTrash"
+ isTrash = "1"
+
)
//changeOfflineValue(itemB,value, listBarcodes)
showProgress()
@@ -667,8 +667,8 @@ class ItemCardFragment(
user = user,
password = password,
newValue = (value.toInt() * -1).toString(),
- isTrash = "0",
- "itemTrash"
+ isTrash = "0"
+
)
}
} catch (e: Exception) {
@@ -748,11 +748,10 @@ class ItemCardFragment(
password = password,
value = code,
delete = delete,
- "itemBarcode_update")
+ )
}
- // viewModel.barcodesEdit(itemFk = itemFk, user = user, password = password, value = code, delete = delete,"itemBarcode_update")
- barcodeAdapter!!.notifyDataSetChanged()
- //changeOfflineValue(item,"", listBarcodes)
+ barcodeAdapter!!.notifyDataSetChanged()
+
showProgress()
}
@@ -784,8 +783,7 @@ class ItemCardFragment(
viewModel.updatePackingTypeSalix(
getData(TOKEN),
this.itemFk,
- itemPackingType,
- "item_updatePackingType"
+ itemPackingType
)/*}else{
viewModel.updatePackingType(
this.itemFk,
diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemCardViewModel.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemCardViewModel.kt
index cc22f319..e6b62983 100644
--- a/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemCardViewModel.kt
+++ b/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemCardViewModel.kt
@@ -13,13 +13,12 @@ import es.verdnatura.presentation.view.feature.articulo.model.*
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
-import timber.log.Timber
class ItemCardViewModel(context: Context) : BaseViewModel() {
- private val getItemCardUserCase:GetItemCardUserCase = GetItemCardUserCase(context)
- val version : String = "5.0.0"
+ private val getItemCardUserCase: GetItemCardUserCase = GetItemCardUserCase(context)
+ val version: String = "5.0.0"
- private val _itemcard by lazy { MutableLiveData() }
+ private val _itemcard by lazy { MutableLiveData() }
val itemcard: LiveData
get() = _itemcard
@@ -37,46 +36,92 @@ class ItemCardViewModel(context: Context) : BaseViewModel() {
get() = _itemProposallist
+ fun getItemCard(
+ itemFk: String,
+ warehouseFk: String,
+ user: String,
+ password: String,
+ callFunction: String
+ ) {
+ getItemCardUserCase.getItemCard(user, password, itemFk, warehouseFk)
+ .enqueue(object : Callback {
+ override fun onFailure(call: Call, t: Throwable) {
+ _itemcard.value = ItemCardVO(
+ isError = true,
+ errorMessage = getMessageFromAllResponse(nameofFunction(this), t.message!!)
+ )
-
- fun getItemCard(itemFk:String,warehouseFk:String,user:String,password:String,callFunction:String) {
- getItemCardUserCase.getItemCard(user,password,itemFk,warehouseFk).enqueue(object :Callback{
- override fun onFailure(call: Call, t: Throwable) {
- _itemcard.value = ItemCardVO(isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),t.message!!))
-
- }
-
- override fun onResponse(call: Call, response: Response) {
-
- // Timber.d("el nombre de la funcion es : "+nameofFunction({ } ))-->devuelve onResponse
- Timber.d("el nombre de la funcion es : "+nameofFunction(this))//-->devuelve getItemCard
-
- if (response.body() != null){
- _itemcard.value = response.body()!!
- }else{
- _itemcard.value = ItemCardVO(isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),response.message()))
}
- }
- })
+ override fun onResponse(call: Call, response: Response) {
+
+ // Timber.d("el nombre de la funcion es : "+nameofFunction({ } ))-->devuelve onResponse
+ //Timber.d("el nombre de la funcion es : "+nameofFunction(this))//-->devuelve getItemCard
+
+ if (response.body() != null) {
+ _itemcard.value = response.body()!!
+ } else {
+ _itemcard.value = ItemCardVO(
+ isError = true,
+ errorMessage = getMessageFromAllResponse(
+ nameofFunction(this),
+ response.message()
+ )
+ )
+ }
+ }
+
+ })
}
- fun item_getSimilar(itemFk:String, warehouseFk: String, vShipped: String, vIsShowedByType:String, user:String, password:String,callFunction:String) {
- getItemCardUserCase.item_getSimilar(user,password,itemFk,warehouseFk,vShipped,vIsShowedByType).enqueue(object :Callback>{
+ fun item_getSimilar(
+ itemFk: String,
+ warehouseFk: String,
+ vShipped: String,
+ vIsShowedByType: String,
+ user: String,
+ password: String,
+ callFunction: String
+ ) {
+ getItemCardUserCase.item_getSimilar(
+ user,
+ password,
+ itemFk,
+ warehouseFk,
+ vShipped,
+ vIsShowedByType
+ ).enqueue(object : Callback> {
override fun onFailure(call: Call>, t: Throwable) {
- val listError:ArrayList = ArrayList()
- listError.add(ItemProposal(isError = true,errorMessage =getMessageFromAllResponse(nameofFunction(this),t.message!!)))
+ val listError: ArrayList = ArrayList()
+ listError.add(
+ ItemProposal(
+ isError = true,
+ errorMessage = getMessageFromAllResponse(nameofFunction(this), t.message!!)
+ )
+ )
_itemProposallist.value = ItemProposalList(listError)
}
- override fun onResponse(call: Call>, response: Response>) {
- if (response.body() != null){
- _itemProposallist.value = response.body()?.let { ItemProposalList(it)
+ override fun onResponse(
+ call: Call>,
+ response: Response>
+ ) {
+ if (response.body() != null) {
+ _itemProposallist.value = response.body()?.let {
+ ItemProposalList(it)
}
- }else{
- val listError:ArrayList = ArrayList()
- listError.add(ItemProposal(isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),response.message())))
+ } else {
+ val listError: ArrayList = ArrayList()
+ listError.add(
+ ItemProposal(
+ isError = true,
+ errorMessage = getMessageFromAllResponse(
+ nameofFunction(this),
+ response.message()
+ )
+ )
+ )
_itemProposallist.value = ItemProposalList(listError)
}
@@ -86,22 +131,38 @@ class ItemCardViewModel(context: Context) : BaseViewModel() {
}
- fun getItemPackingType(user:String,password:String,callFunction:String) {
- getItemCardUserCase.getItemPackingType(user,password).enqueue(object :
- Callback>{
+ fun getItemPackingType(user: String, password: String, callFunction: String) {
+ getItemCardUserCase.getItemPackingType(user, password).enqueue(object :
+ Callback> {
override fun onFailure(call: Call>, t: Throwable) {
- val listError:ArrayList = ArrayList()
- listError.add(ItemPackingType(isError = true,errorMessage =getMessageFromAllResponse(nameofFunction(this),t.message!!)))
+ val listError: ArrayList = ArrayList()
+ listError.add(
+ ItemPackingType(
+ isError = true,
+ errorMessage = getMessageFromAllResponse(nameofFunction(this), t.message!!)
+ )
+ )
_itemspackinglist.value = ItemPackingTypeList(listError)
- }
+ }
- override fun onResponse(call: Call>, response: Response>) {
- if (response.body() != null){
+ override fun onResponse(
+ call: Call>,
+ response: Response>
+ ) {
+ if (response.body() != null) {
_itemspackinglist.value = response.body()?.let { ItemPackingTypeList(it) }
- }else{
- val listError:ArrayList = ArrayList()
- listError.add(ItemPackingType(isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),response.message())))
+ } else {
+ val listError: ArrayList = ArrayList()
+ listError.add(
+ ItemPackingType(
+ isError = true,
+ errorMessage = getMessageFromAllResponse(
+ nameofFunction(this),
+ response.message()
+ )
+ )
+ )
_itemspackinglist.value = ItemPackingTypeList(listError)
}
}
@@ -109,22 +170,38 @@ class ItemCardViewModel(context: Context) : BaseViewModel() {
})
}
- fun getItemPackingTypeSalix(token:String) {
+ fun getItemPackingTypeSalix(token: String) {
getItemCardUserCase.getItemPackingTypeSalix(token).enqueue(object :
- Callback>{
+ Callback> {
override fun onFailure(call: Call>, t: Throwable) {
- val listError:ArrayList = ArrayList()
- listError.add(ItemPackingType(isError = true,errorMessage =getMessageFromAllResponse(nameofFunction(this),t.message!!)))
+ val listError: ArrayList