refs #5890 feat:itemShelvingSale
This commit is contained in:
parent
f163ac5b11
commit
754d4c41c3
|
@ -265,7 +265,7 @@ class CollectionFragmentPickerNew(
|
|||
private fun setEvents() {
|
||||
|
||||
binding.mainToolbar.backButton.setOnClickListener {
|
||||
ma.onBackPressed()
|
||||
ma.onMyBackPressed()
|
||||
}
|
||||
//ESCANER =========
|
||||
|
||||
|
@ -351,7 +351,7 @@ class CollectionFragmentPickerNew(
|
|||
customDialog.setTitle(getString(R.string.error)).setDescription(it.errorMessage)
|
||||
.setOkButton(getString(R.string.accept)) {
|
||||
customDialog.dismiss()
|
||||
if (activity != null) ma.onBackPressed()
|
||||
if (activity != null) ma.onMyBackPressed()
|
||||
}.show()
|
||||
}
|
||||
|
||||
|
@ -378,7 +378,7 @@ class CollectionFragmentPickerNew(
|
|||
.setDescription(it.errorMessage)
|
||||
.setOkButton(getString(R.string.accept)) {
|
||||
customDialog.dismiss()
|
||||
if (activity != null) ma.onBackPressed()
|
||||
if (activity != null) ma.onMyBackPressed()
|
||||
}.show()
|
||||
}
|
||||
|
||||
|
@ -405,7 +405,7 @@ class CollectionFragmentPickerNew(
|
|||
customDialog.setTitle(getString(R.string.error)).setDescription(it.errorMessage)
|
||||
.setOkButton(getString(R.string.accept)) {
|
||||
customDialog.dismiss()
|
||||
if (activity != null) ma.onBackPressed()
|
||||
if (activity != null) ma.onMyBackPressed()
|
||||
}.show()
|
||||
}
|
||||
|
||||
|
@ -941,6 +941,7 @@ class CollectionFragmentPickerNew(
|
|||
private fun customDialogTakeAction(
|
||||
position: Int, itemShelvingFk: Int, totalReserved: Int, isItemScanned: Boolean?
|
||||
) {
|
||||
goBack = false
|
||||
isScanned = isItemScanned
|
||||
if (customDialogList.getValueTwo().isNotEmpty()) {
|
||||
|
||||
|
@ -1037,7 +1038,9 @@ class CollectionFragmentPickerNew(
|
|||
}.setOkButtonTwo("NO") {
|
||||
scanRequest()
|
||||
customDialogThreeButtonsQuantity.dismiss()
|
||||
if (quantity == 0){
|
||||
viewModel.itemShelvingSaleExists(myGroupList[position].itemShelvingSaleFk, position, quantity)
|
||||
}else{markLine(position, quantity, true)}
|
||||
//markLine(position, quantity, true)
|
||||
}.setKoButton("CANCELAR") {
|
||||
scanRequest()
|
||||
|
|
Loading…
Reference in New Issue