Version 23.3Beta Añadido error si falla el ubicador y solucionado al leer artículos. Modificado saleMistakeAdd para que solo envíe dos parámetros.
This commit is contained in:
parent
09ba6b3e89
commit
caa3116f5c
|
@ -276,7 +276,7 @@
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|
|
@ -83,20 +83,17 @@
|
||||||
</select>
|
</select>
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="fa688d1c-dbee-4864-9e33-4d84ef9afca8" name="Default Changelist" comment="Version 23.2 Modificado orden ubicador y revisión anterior falta activar icono">
|
<list default="true" id="fa688d1c-dbee-4864-9e33-4d84ef9afca8" name="Default Changelist" comment="Version 23.2 Modificado actualizar pantalla al transferir en Ubicador. Subida version">
|
||||||
<change afterPath="$PROJECT_DIR$/app/src/main/res/drawable/ic_shopping_self.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/build.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/app/build.gradle" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/build.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/app/build.gradle" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/google-services.json" beforeDir="false" afterPath="$PROJECT_DIR$/app/google-services.json" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/google-services.json" beforeDir="false" afterPath="$PROJECT_DIR$/app/google-services.json" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/release/output-metadata.json" beforeDir="false" afterPath="$PROJECT_DIR$/app/release/output-metadata.json" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/base/BaseFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/base/BaseFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/base/BaseFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/base/BaseFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/common/itemScanned.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/common/itemScanned.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/fragment/AjustesFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/fragment/AjustesFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroViewModel.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionViewModel.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/presacador/fragment/EndSacadorFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/presacador/fragment/EndSacadorFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorViewModel.kt" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/res/values-es/strings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/values-es/strings.xml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/res/values/strings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/values/strings.xml" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
@ -193,7 +190,7 @@
|
||||||
</option>
|
</option>
|
||||||
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
||||||
<map>
|
<map>
|
||||||
<entry key="$PROJECT_DIR$" value="test_4744" />
|
<entry key="$PROJECT_DIR$" value="test_#5052_ubicador" />
|
||||||
</map>
|
</map>
|
||||||
</option>
|
</option>
|
||||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
|
@ -399,13 +396,6 @@
|
||||||
<option name="presentableId" value="Default" />
|
<option name="presentableId" value="Default" />
|
||||||
<updated>1618825571576</updated>
|
<updated>1618825571576</updated>
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00059" summary="Version 8.4.1Beta, return "finish", strings y quitado test rocket">
|
|
||||||
<created>1653577349342</created>
|
|
||||||
<option name="number" value="00059" />
|
|
||||||
<option name="presentableId" value="LOCAL-00059" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1653577349343</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00060" summary="Version 8.4.1Beta, strings y return finish">
|
<task id="LOCAL-00060" summary="Version 8.4.1Beta, strings y return finish">
|
||||||
<created>1653644047502</created>
|
<created>1653644047502</created>
|
||||||
<option name="number" value="00060" />
|
<option name="number" value="00060" />
|
||||||
|
@ -742,7 +732,14 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1674660080704</updated>
|
<updated>1674660080704</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="108" />
|
<task id="LOCAL-00108" summary="Version 23.2 Modificado actualizar pantalla al transferir en Ubicador. Subida version">
|
||||||
|
<created>1674813532897</created>
|
||||||
|
<option name="number" value="00108" />
|
||||||
|
<option name="presentableId" value="LOCAL-00108" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1674813532898</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="109" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="Vcs.Log.History.Properties">
|
<component name="Vcs.Log.History.Properties">
|
||||||
|
@ -784,7 +781,7 @@
|
||||||
<entry key="branch">
|
<entry key="branch">
|
||||||
<value>
|
<value>
|
||||||
<list>
|
<list>
|
||||||
<option value="test_4897" />
|
<option value="test_#5052_ubicador" />
|
||||||
</list>
|
</list>
|
||||||
</value>
|
</value>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -843,7 +840,6 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
|
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
|
||||||
<MESSAGE value="Version 9.2.1 Refactor Inicio, pintar a través del rgb, modificado diseño,se añade shelvingLog y muestra colección a través de ticket" />
|
|
||||||
<MESSAGE value="Version 9.2.1 Modificado fragment" />
|
<MESSAGE value="Version 9.2.1 Modificado fragment" />
|
||||||
<MESSAGE value="Version 9.2.1 Modificado fragment a fragment_general" />
|
<MESSAGE value="Version 9.2.1 Modificado fragment a fragment_general" />
|
||||||
<MESSAGE value="Version 9.2.1 añadido error encajado y modificado marcaje" />
|
<MESSAGE value="Version 9.2.1 añadido error encajado y modificado marcaje" />
|
||||||
|
@ -868,7 +864,8 @@
|
||||||
<MESSAGE value="Version 23.2 Cambiado collection_assign a String." />
|
<MESSAGE value="Version 23.2 Cambiado collection_assign a String." />
|
||||||
<MESSAGE value="Version 23.2-Fallo item_card" />
|
<MESSAGE value="Version 23.2-Fallo item_card" />
|
||||||
<MESSAGE value="Version 23.2 Modificado orden ubicador y revisión anterior falta activar icono" />
|
<MESSAGE value="Version 23.2 Modificado orden ubicador y revisión anterior falta activar icono" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Version 23.2 Modificado orden ubicador y revisión anterior falta activar icono" />
|
<MESSAGE value="Version 23.2 Modificado actualizar pantalla al transferir en Ubicador. Subida version" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Version 23.2 Modificado actualizar pantalla al transferir en Ubicador. Subida version" />
|
||||||
</component>
|
</component>
|
||||||
<component name="XDebuggerManager">
|
<component name="XDebuggerManager">
|
||||||
<breakpoint-manager>
|
<breakpoint-manager>
|
||||||
|
|
|
@ -13,11 +13,11 @@ android {
|
||||||
applicationId "es.verdnatura"
|
applicationId "es.verdnatura"
|
||||||
minSdkVersion 24 //21
|
minSdkVersion 24 //21
|
||||||
targetSdkVersion 33
|
targetSdkVersion 33
|
||||||
versionCode 157
|
versionCode 160
|
||||||
//versionName = "9.8Beta" version 148
|
//versionName = "9.8Beta" version 148
|
||||||
//versionName = "23.2Beta" 154
|
//versionName = "23.2Beta" 154
|
||||||
//versionName = "23.2" 157
|
//versionName = "23.2" 157
|
||||||
versionName = "23.2"
|
versionName = "23.3Beta"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,9 +33,9 @@ android {
|
||||||
getByName("debug") {
|
getByName("debug") {
|
||||||
applicationIdSuffix = ".debug"
|
applicationIdSuffix = ".debug"
|
||||||
}*/
|
}*/
|
||||||
/* getByName("release") {
|
getByName("release") {
|
||||||
applicationIdSuffix = ".sfusion"
|
applicationIdSuffix = ".sfusion"
|
||||||
}*/
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"client_info": {
|
"client_info": {
|
||||||
"mobilesdk_app_id": "1:519813071137:android:3de54686c580a6f79dfe60",
|
"mobilesdk_app_id": "1:519813071137:android:3de54686c580a6f79dfe60",
|
||||||
"android_client_info": {
|
"android_client_info": {
|
||||||
"package_name": "es.verdnatura"
|
"package_name": "es.verdnatura.sfusion"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oauth_client": [
|
"oauth_client": [
|
||||||
|
|
|
@ -653,7 +653,7 @@ abstract class BaseFragment<T : ViewDataBinding, V : BaseViewModel>(viewModelCla
|
||||||
urlSalix = "https://test-salix.verdnatura.es/api/"
|
urlSalix = "https://test-salix.verdnatura.es/api/"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
var working_in_test = false
|
var working_in_test = true
|
||||||
if (working_in_test) {
|
if (working_in_test) {
|
||||||
saveWorkForm(
|
saveWorkForm(
|
||||||
WorkForms(
|
WorkForms(
|
||||||
|
@ -666,14 +666,14 @@ abstract class BaseFragment<T : ViewDataBinding, V : BaseViewModel>(viewModelCla
|
||||||
saveWorkForm(
|
saveWorkForm(
|
||||||
WorkForms(
|
WorkForms(
|
||||||
"TestHome",
|
"TestHome",
|
||||||
"http://192.168.1.132:9000",
|
"http://192.168.1.128:9000",
|
||||||
urlSalix = "https://test-salix.verdnatura.es/api/"
|
urlSalix = "https://test-salix.verdnatura.es/api/"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
saveWorkForm(
|
saveWorkForm(
|
||||||
WorkForms(
|
WorkForms(
|
||||||
"TestLOCAL",
|
"TestLOCAL",
|
||||||
"http://192.168.1.132:9000",
|
"http://192.168.1.128:9000",
|
||||||
urlSalix = "http://localhost:3000/api/"
|
urlSalix = "http://localhost:3000/api/"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -2519,9 +2519,9 @@ class CollectionFragment(
|
||||||
override fun onBarcodeRowClickListener(item: BarcodeVO) {
|
override fun onBarcodeRowClickListener(item: BarcodeVO) {
|
||||||
list.forEach {
|
list.forEach {
|
||||||
if (it.description == item.code) {
|
if (it.description == item.code) {
|
||||||
|
|
||||||
viewModel.saleMistakeAdd(
|
viewModel.saleMistakeAdd(
|
||||||
vSaleFk = mistakeSale?.saleFk!!,
|
vSaleFk = mistakeSale?.saleFk!!,
|
||||||
vUserFk = mistakeSale?.workerFk!!.toInt(),
|
|
||||||
vTypeFk = it.id
|
vTypeFk = it.id
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -816,10 +816,11 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
fun saleMistakeAdd(
|
fun saleMistakeAdd(
|
||||||
vSaleFk: Int,
|
vSaleFk: Int,
|
||||||
vUserFk: Int,
|
|
||||||
vTypeFk: Int
|
vTypeFk: Int
|
||||||
) {
|
) {
|
||||||
silex.saleMistakeAdd(vSaleFk, vUserFk, vTypeFk)
|
/*#4742
|
||||||
|
Tiene que estar en produc la parte de Silex referente a saleMistakeAdd dos parámetros no tres-quitar tercer parámetro cuando esté subido*/
|
||||||
|
silex.saleMistakeAdd(vSaleFk, vTypeFk, vTypeFk)
|
||||||
.enqueue(object :
|
.enqueue(object :
|
||||||
SilexCallback<Any>(context) {
|
SilexCallback<Any>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
|
|
|
@ -1020,7 +1020,7 @@ class EndSacadorFragment(
|
||||||
|
|
||||||
private fun checkItemScan(valueToCheck: String): Boolean {
|
private fun checkItemScan(valueToCheck: String): Boolean {
|
||||||
val saleToCheck = sales[storedPosition]
|
val saleToCheck = sales[storedPosition]
|
||||||
return saleToCheck.itemFk == valueToCheck.toInt()
|
return saleToCheck.itemFk.toDouble() == valueToCheck.toDouble()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun showScanner(index: Int, sale: PreSacadorItemVO) {
|
private fun showScanner(index: Int, sale: PreSacadorItemVO) {
|
||||||
|
|
|
@ -114,7 +114,8 @@ class UbicadorFragment(
|
||||||
iconReload.setImageResource(R.drawable.ic_autorenew_black_24dp)
|
iconReload.setImageResource(R.drawable.ic_autorenew_black_24dp)
|
||||||
|
|
||||||
|
|
||||||
//Tarea#5052 binding.mainToolbar.switchButton.visibility = VISIBLE
|
//Tarea#5052
|
||||||
|
binding.mainToolbar.switchButton.visibility = VISIBLE
|
||||||
binding.mainToolbar.switchButton.setOnCheckedChangeListener { buttonView, isChecked ->
|
binding.mainToolbar.switchButton.setOnCheckedChangeListener { buttonView, isChecked ->
|
||||||
if (binding.mainToolbar.toolbarTitle.text == getString(R.string.titleUbicator)) {
|
if (binding.mainToolbar.toolbarTitle.text == getString(R.string.titleUbicator)) {
|
||||||
ma.messageWithSound(getString(R.string.scanShelving), false, false)
|
ma.messageWithSound(getString(R.string.scanShelving), false, false)
|
||||||
|
@ -145,7 +146,7 @@ class UbicadorFragment(
|
||||||
}
|
}
|
||||||
listIcons.add(iconAdd)
|
listIcons.add(iconAdd)
|
||||||
listIcons.add(iconReload)
|
listIcons.add(iconReload)
|
||||||
listIcons.add(iconChecker)
|
//listIcons.add(iconChecker)
|
||||||
|
|
||||||
|
|
||||||
binding.mainToolbar.toolbarIcons.adapter =
|
binding.mainToolbar.toolbarIcons.adapter =
|
||||||
|
@ -590,6 +591,10 @@ class UbicadorFragment(
|
||||||
})
|
})
|
||||||
|
|
||||||
responseMake.observe(viewLifecycleOwner, Observer {
|
responseMake.observe(viewLifecycleOwner, Observer {
|
||||||
|
binding.splashProgress.visibility=GONE
|
||||||
|
if (it.isError){
|
||||||
|
ma.messageWithSound(it.errorMessage,true,true,isToasted = true)
|
||||||
|
}else{
|
||||||
if (!shelvingFk.isNullOrEmpty()) {
|
if (!shelvingFk.isNullOrEmpty()) {
|
||||||
|
|
||||||
binding.mainToolbar.toolbarTitle.text = shelvingFk
|
binding.mainToolbar.toolbarTitle.text = shelvingFk
|
||||||
|
@ -598,7 +603,7 @@ class UbicadorFragment(
|
||||||
shelvingFk
|
shelvingFk
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue