diff --git a/.idea/appInsightsSettings.xml b/.idea/appInsightsSettings.xml
index cbb5825e..66b54b89 100644
--- a/.idea/appInsightsSettings.xml
+++ b/.idea/appInsightsSettings.xml
@@ -35,7 +35,16 @@
-
+
+
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 12348f2a..49029d75 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -160,11 +160,6 @@
@style/AppTheme
-
-
- @style/AppTheme
-
-
@style/AppTheme
@@ -190,11 +185,6 @@
@style/AppTheme
-
-
- @style/AppTheme
-
-
@style/AppTheme
@@ -251,6 +241,11 @@
@style/AppTheme
+
+
+ @style/AppTheme
+
+
@style/AppTheme
@@ -281,6 +276,16 @@
@style/AppTheme
+
+
+ @style/AppTheme
+
+
+
+
+ @style/AppTheme
+
+
@style/AppTheme
@@ -368,28 +373,99 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
@@ -445,6 +521,9 @@
+
+
+
@@ -535,6 +614,9 @@
+
+
+
@@ -553,62 +635,63 @@
- {
- "keyToString": {
- "Android App.app.executor": "Run",
- "ApkExportedModule": "Gestor_Almacén.app",
- "DEBUGGABLE_DEVICE": "zebra_technologies-tc21-21114523025303",
- "DEBUGGABLE_PROCESS": "es.verdnatura.sfusion",
- "DEBUGGER_ID": "Auto",
- "ExportApk.ApkPathForGestor_Almacén.app": "C:\\Users\\sergiodt\\AndroidStudioProjects\\vn-warehouseManager\\app",
- "Gradle.vn-warehouseManager [clean].executor": "Run",
- "Gradle.vn-warehouseManager.executor": "Run",
- "KotlinFunctionFindUsagesOptions.isSearchForTextOccurrences": "true",
- "PROJECT_TRUSTED_KEY": "true",
- "RunOnceActivity.OpenProjectViewOnStart": "true",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "RunOnceActivity.cidr.known.project.marker": "true",
- "RunOnceActivity.readMode.enableVisualFormatting": "true",
- "SHARE_PROJECT_CONFIGURATION_FILES": "true",
- "SHOW_ALL_PROCESSES": "false",
- "ScreenRecorder.SavePath": "C:\\Users\\sergiodt",
- "android-custom-viewC:/Users/sergiodt/.gradle/caches/modules-2/files-2.1/androidx.recyclerview/recyclerview/1.2.1/f0f93e67af3f7417bdd560d5142f6dec4fe629c3/recyclerview-1.2.1-sources.jar!/androidx/recyclerview/widget/RecyclerView.java_SELECTED": "RecyclerView",
- "android-custom-viewC:/Users/sergiodt/AppData/Local/Android/Sdk/sources/android-29/android/widget/TextView.java_SELECTED": "TextView",
- "android-custom-viewC:/Users/sergiodt/AppData/Local/Android/Sdk/sources/android-33/android/view/View.java_SELECTED": "View",
- "android-custom-viewC:/Users/sergiodt/AppData/Local/Android/Sdk/sources/android-34/android/view/View.java_SELECTED": "View",
- "android-custom-viewC:/Users/sergiodt/AppData/Local/Android/Sdk/sources/android-34/android/widget/CompoundButton.java_SELECTED": "CompoundButton",
- "android-custom-viewC:/Users/sergiodt/AppData/Local/Android/Sdk/sources/android-34/android/widget/TextView.java_SELECTED": "TextView",
- "cf.first.check.clang-format": "false",
- "cidr.known.project.marker": "true",
- "com.developerphil.adbidea.selecteddevices": "G65TY9DQN7X4BIE6",
- "com.google.services.firebase.aqiPopupShown": "true",
- "git-widget-placeholder": "dev__6078",
- "ignore.virus.scanning.warn.message": "true",
- "kotlin-language-version-configured": "true",
- "last_directory_selection": "C:/Users/sergiodt/AndroidStudioProjects/vn-warehouseManager/app/src/main/res/drawable",
- "last_opened_file_path": "C:/Users/sergiodt/AndroidStudioProjects/vn-warehouseManager/app/src/main/res/layout",
- "project.structure.last.edited": "Modules",
- "project.structure.proportion": "0.17",
- "project.structure.side.proportion": "0.2",
- "run.code.analysis.last.selected.profile": "pProject Default",
- "settings.editor.selected.configurable": "preferences.editor.code.editing"
+
+}]]>
@@ -1145,7 +1228,7 @@
1709725795643
-
+
@@ -1273,8 +1356,6 @@
-
-
@@ -1298,7 +1379,9 @@
-
+
+
+
diff --git a/app/build.gradle b/app/build.gradle
index 855a1627..ce7a1871 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -13,8 +13,8 @@ android {
applicationId "es.verdnatura"
minSdkVersion 26
targetSdkVersion 33 // se deja con target si no Play Protect la bloquea
- versionCode 324
- versionName = "24.32Beta"
+ versionCode 326
+ versionName = "24.36Beta"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
diff --git a/app/src/main/java/es/verdnatura/di/viewModelModule.kt b/app/src/main/java/es/verdnatura/di/viewModelModule.kt
index e1392b8b..4aad49c1 100644
--- a/app/src/main/java/es/verdnatura/di/viewModelModule.kt
+++ b/app/src/main/java/es/verdnatura/di/viewModelModule.kt
@@ -21,7 +21,6 @@ import es.verdnatura.presentation.view.feature.packaging.fragment.SupplierViewMo
import es.verdnatura.presentation.view.feature.packingHolland.fragment.PackingHollandViewModel
import es.verdnatura.presentation.view.feature.paletizador.fragment.CmrExpeditionPalletViewModel
import es.verdnatura.presentation.view.feature.paletizador.fragment.ExpeditionPalletDetailViewModel
-import es.verdnatura.presentation.view.feature.paletizador.fragment.ExpeditionPalletViewModel
import es.verdnatura.presentation.view.feature.paletizador.fragment.ExpeditionScanSorterViewModel
import es.verdnatura.presentation.view.feature.paletizador.fragment.ExpeditionScanViewModel
import es.verdnatura.presentation.view.feature.paletizador.fragment.ExpeditionStateViewModel
@@ -125,10 +124,6 @@ val viewModelModule = module {
ExpeditionTruckListViewModel(androidContext())
}
- viewModel {
- ExpeditionPalletViewModel(androidContext())
- }
-
viewModel {
ExpeditionPalletDetailViewModel(androidContext())
}
diff --git a/app/src/main/java/es/verdnatura/domain/SalixService.kt b/app/src/main/java/es/verdnatura/domain/SalixService.kt
index 0d41c7a1..8733095e 100644
--- a/app/src/main/java/es/verdnatura/domain/SalixService.kt
+++ b/app/src/main/java/es/verdnatura/domain/SalixService.kt
@@ -160,7 +160,7 @@ interface SalixService {
@POST("Applications/expedition_checkRoute/execute-func")
fun expeditionCheckRoute(
@Query("params") params: Any, @Query("schema") schema: String = "vn"
- ): Call
+ ): Call
@GET("ExpeditionStates/filter")
fun getExpeditionStates(
@@ -264,10 +264,6 @@ interface SalixService {
@Body workerActionSalix: WorkerActionSalix
): Call
- @GET("workerActivityTypes")
- fun workerActivityList(
- ): Call
-
@POST("Applications/cmrPallet_add/execute-proc")
fun cmrPalletAdd(
@Query("params") params: Any? = null, @Query("schema") schema: String = "vn"
diff --git a/app/src/main/java/es/verdnatura/presentation/common/GeneralAdapter.kt b/app/src/main/java/es/verdnatura/presentation/common/GeneralAdapter.kt
index ca905184..eb39382f 100644
--- a/app/src/main/java/es/verdnatura/presentation/common/GeneralAdapter.kt
+++ b/app/src/main/java/es/verdnatura/presentation/common/GeneralAdapter.kt
@@ -7,42 +7,40 @@ import androidx.recyclerview.widget.RecyclerView
import es.verdnatura.databinding.ItemGeneralRowBinding
class GeneralAdapter(
- private val items: List,
- private val OnGeneralItemRowClickListener: OnGeneralItemRowClickListener,
- // private var showDelete: Boolean = false
- ): RecyclerView.Adapter () {
+ private val items: List,
+ private val OnGeneralItemRowClickListener: OnGeneralItemRowClickListener,
+ // private var showDelete: Boolean = false
+) : RecyclerView.Adapter() {
+ override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ItemHolder {
+ return ItemHolder(
+ ItemGeneralRowBinding.inflate(LayoutInflater.from(parent.context), parent, false)
+ )
+ }
- override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ItemHolder {
- return ItemHolder(
- ItemGeneralRowBinding.inflate(LayoutInflater.from(parent.context),parent,false)
- )
+ override fun getItemCount() = items.size
+
+ override fun onBindViewHolder(holder: ItemHolder, position: Int) {
+ holder.bind(items[position])
+
+ holder.binding.root.setOnClickListener {
+ OnGeneralItemRowClickListener.onGeneralItemRowClickListener(items[position])
}
- override fun getItemCount() =items.size
+ }
- override fun onBindViewHolder(holder: ItemHolder, position: Int) {
- holder.bind(items[position])
+ inner class ItemHolder(
+ val binding: ItemGeneralRowBinding
+ ) : RecyclerView.ViewHolder(binding.root) {
+ //private val res = binding.root.context.resources
+ fun bind(item: GeneralItem) {
+ binding.apply {
+ this.item = item
+ /*if (showDelete) itemImage.visibility = View.VISIBLE
+ else itemImage.visibility = View.GONE*/
- holder.binding.root.setOnClickListener {
- OnGeneralItemRowClickListener.OnGeneralItemRowClickListener(items[position])
- }
-
- }
-
-
- inner class ItemHolder(
- val binding: ItemGeneralRowBinding
- ) : RecyclerView.ViewHolder(binding.root){
- //private val res = binding.root.context.resources
- fun bind(item: GeneralItem) {
- binding.apply {
- this.item = item
- /*if (showDelete) itemImage.visibility = View.VISIBLE
- else itemImage.visibility = View.GONE*/
-
- itemCode.visibility=View.GONE
- }
+ itemCode.visibility = View.GONE
}
}
}
+}
diff --git a/app/src/main/java/es/verdnatura/presentation/common/UICallbacks.kt b/app/src/main/java/es/verdnatura/presentation/common/UICallbacks.kt
index 98c2bee3..0daa0cb4 100644
--- a/app/src/main/java/es/verdnatura/presentation/common/UICallbacks.kt
+++ b/app/src/main/java/es/verdnatura/presentation/common/UICallbacks.kt
@@ -77,6 +77,7 @@ interface OnItemButtonTicketRowClickListener {
interface OnItemButtonRoadMapStopRowClickListener {
fun onItemButtonRoadMapStopRowClickListener(item: ClientTicketSalix, action: String)
}
+
interface OnItemButtonCMRRowClickListener {
fun onItemButtonCMRRowClickListener(item: Ticket)
}
@@ -94,11 +95,11 @@ interface OnBarcodeRowClickListener {
}
interface OnSmartTagRowClickListener {
- fun OnSmartTagRowClickListener(item: SmartTag)
+ fun onSmartTagRowClickListener(item: SmartTag)
}
interface OnGeneralItemRowClickListener {
- fun OnGeneralItemRowClickListener(item: GeneralItem)
+ fun onGeneralItemRowClickListener(item: GeneralItem)
}
interface OnImageTrashClickListener {
@@ -106,8 +107,9 @@ interface OnImageTrashClickListener {
}
interface OnEditSubQuantityListener {
- fun OnEditSubQuantityListener(item: Any, text: String)
+ fun onEditSubQuantityListener(item: Any, text: String)
}
+
interface AdapterCallback {
fun getPosition(): Int
}
@@ -117,15 +119,15 @@ interface OnItemClickListener {
}
interface OnImageUpdateClickListener {
- fun OnImageUpdateClickListener(item: Any)
+ fun onImageUpdateClickListener(item: Any)
}
interface OnWorkFormsItemRowClickListener {
- fun OnWorkFormsItemRowClickListener(item: WorkForms)
+ fun onWorkFormsItemRowClickListener(item: WorkForms)
}
interface OnTrashItemRowClickListener {
- fun OnTrashItemRowClickListener(item: WorkForms)
+ fun onTrashItemRowClickListener(item: WorkForms)
}
interface OnLocationRowClickListener {
@@ -209,7 +211,7 @@ interface OnComprobarPalletViewClickListener {
}
interface OnScanLongClickListener {
- fun onScanLongClickListener(ItemExpeditionScanVO: ItemExpeditionScanVO)
+ fun onScanLongClickListener(itemExpeditionScanVO: ItemExpeditionScanVO)
}
interface OnCollectionSelectedListener {
diff --git a/app/src/main/java/es/verdnatura/presentation/common/UtilFunctions.kt b/app/src/main/java/es/verdnatura/presentation/common/UtilFunctions.kt
index 03fb56cc..a82d26c9 100644
--- a/app/src/main/java/es/verdnatura/presentation/common/UtilFunctions.kt
+++ b/app/src/main/java/es/verdnatura/presentation/common/UtilFunctions.kt
@@ -1,13 +1,18 @@
package es.verdnatura.presentation.common
+import android.content.Context
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
+import es.verdnatura.R
+import java.text.SimpleDateFormat
+import java.util.Calendar
+import java.util.Locale
class FunctionUtils{
fun getMessageFromJSON(json: String): String {
val gson = Gson()
var message = ""
- var tutorialMap: Map =
+ val tutorialMap: Map =
gson.fromJson(json, object : TypeToken