feat issues refs #7636
This commit is contained in:
parent
e2f4a0f43a
commit
3512e61875
|
@ -62,7 +62,9 @@ class ControladorFragment :
|
|||
try {
|
||||
binding.scanInput.setText(
|
||||
itemScanValue(
|
||||
binding.scanInput.text.toString(), arrayOf("ticket","saleGroup"), "id"
|
||||
binding.scanInput.text.toString(),
|
||||
arrayOf("ticket", "saleGroup"),
|
||||
"id"
|
||||
).toString().toInt().toString(),
|
||||
)
|
||||
} catch (ex: Exception) {
|
||||
|
@ -77,7 +79,9 @@ class ControladorFragment :
|
|||
try {
|
||||
collectionViewModel!!.ticketState(
|
||||
itemScanValue(
|
||||
binding.scanInput.text.toString(), arrayOf("ticket","saleGroup"), "id"
|
||||
binding.scanInput.text.toString(),
|
||||
arrayOf("ticket", "saleGroup"),
|
||||
"id"
|
||||
).toString().toInt()
|
||||
)
|
||||
} catch (ex: Exception) {
|
||||
|
@ -105,14 +109,26 @@ class ControladorFragment :
|
|||
.setOkButton(getString(R.string.aware)) {
|
||||
customDialogWarning.dismiss()
|
||||
|
||||
try {
|
||||
viewModel.getSales(
|
||||
collectionFk = itemScanValue(
|
||||
binding.scanInput.text.toString(), arrayOf("ticket","saleGroup"), "id"
|
||||
binding.scanInput.text.toString(),
|
||||
arrayOf("ticket", "saleGroup"),
|
||||
"id"
|
||||
).toString().toInt(),
|
||||
print = false,
|
||||
source = ConstAndValues.ON_CHECKING
|
||||
)
|
||||
|
||||
} catch (ex: Exception) {
|
||||
ma.messageWithSound(
|
||||
message = getString(R.string.errorScanItem),
|
||||
isError = true,
|
||||
isToasted = true,
|
||||
isPlayed = true
|
||||
)
|
||||
}
|
||||
|
||||
/* viewModel.getSales(
|
||||
collectionFk = binding.scanInput.text.toString()
|
||||
.toInt(),
|
||||
|
@ -128,7 +144,9 @@ class ControladorFragment :
|
|||
} else {
|
||||
viewModel.getSales(
|
||||
collectionFk = itemScanValue(
|
||||
binding.scanInput.text.toString(), arrayOf("ticket","saleGRoup"), "id"
|
||||
binding.scanInput.text.toString(),
|
||||
arrayOf("ticket", "saleGRoup"),
|
||||
"id"
|
||||
).toString().toInt(),
|
||||
print = false,
|
||||
source = ConstAndValues.ON_CHECKING
|
||||
|
|
Loading…
Reference in New Issue