feat issues refs #7636

This commit is contained in:
Sergio De la torre 2024-08-14 06:59:05 +02:00
parent bb44fbd56a
commit e47c6da01e
4 changed files with 9 additions and 4 deletions

View File

@ -1997,7 +1997,7 @@ class CollectionFragmentPicker(
) { ) {
getString(R.string.Todosloscampossonobligatorios).toast(requireContext()) getString(R.string.Todosloscampossonobligatorios).toast(requireContext())
} else { } else {
try {
viewModel.collectionAddItem( viewModel.collectionAddItem(
itemFk = customDialogList.getValue().toInt(), itemFk = customDialogList.getValue().toInt(),
ticketFk = ticketSelected, ticketFk = ticketSelected,
@ -2005,6 +2005,11 @@ class CollectionFragmentPicker(
) )
scanRequest() scanRequest()
customDialogList.dismiss() customDialogList.dismiss()
}catch (_:Exception){
ma.messageWithSound(getString(R.string.errorInput), isError = true, isPlayed = true, isToasted = true)
}
} }
} }
hideKeyboards() hideKeyboards()

View File

@ -136,7 +136,7 @@ class InitPreSacadorFragment(
print() print()
} }
} catch (ex: Exception) { } catch (ex: Exception) {
getString(R.string.errorInput) getString(R.string.errorInput).toast(requireContext())
} }
customDialogInput.setValue("") customDialogInput.setValue("")

View File

@ -202,7 +202,7 @@ class SacadorFragment(
} }
} }
} catch (ex: Exception) { } catch (ex: Exception) {
getString(R.string.errorInput) getString(R.string.errorInput).toast(requireContext())
} }
customDialogInput.setValue("") customDialogInput.setValue("")
} }

View File

@ -193,7 +193,7 @@ class SacadorFragmentNew(
} }
} catch (ex: Exception) { } catch (ex: Exception) {
getString(R.string.errorInput) getString(R.string.errorInput).toast(requireContext())
} }
customDialogInput.setValue("") customDialogInput.setValue("")