feat qr #refs 7520
This commit is contained in:
parent
d81c537e4f
commit
47210cc26e
|
@ -171,7 +171,7 @@ class CollectionShowTicketFragment(
|
|||
try {
|
||||
viewModel.getSales(
|
||||
collectionFk = itemScanValue(
|
||||
binding.scanInput.text.toString(), "ticket", "id"
|
||||
binding.scanInput.text.toString(), arrayOf("ticket","saleGroup"), "id"
|
||||
).toString().toInt(),
|
||||
print = "0",
|
||||
source = type
|
||||
|
|
|
@ -18,6 +18,7 @@ import es.verdnatura.presentation.common.OnCollectionTicketSelectedListener
|
|||
import es.verdnatura.presentation.common.OnOptionsSelectedListener
|
||||
import es.verdnatura.presentation.common.OnPasillerosItemClickListener
|
||||
import es.verdnatura.presentation.common.ToolBarAdapterTooltip
|
||||
import es.verdnatura.presentation.common.itemScanValue
|
||||
import es.verdnatura.presentation.view.component.CustomDialogList
|
||||
import es.verdnatura.presentation.view.feature.articulo.adapter.BarcodeAdapter
|
||||
import es.verdnatura.presentation.view.feature.articulo.model.BarcodeVO
|
||||
|
@ -68,6 +69,7 @@ class SectorCollectionReserveFragment(
|
|||
println("reserve collec $collectionFk")
|
||||
super.init()
|
||||
if (!onBack) {
|
||||
println("check parkings $collectionFk")
|
||||
checkParkingsToPicker()
|
||||
} else {
|
||||
if (onBack) {
|
||||
|
@ -165,8 +167,15 @@ class SectorCollectionReserveFragment(
|
|||
customDialogList.getEditText().setOnEditorActionListener { v, actionId, event ->
|
||||
if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_DONE || actionId == 0 || actionId == 5) {
|
||||
if (customDialogList.getValue().isNotEmpty()) {
|
||||
try {
|
||||
|
||||
try {
|
||||
customDialogList.setValue(
|
||||
itemScanValue(
|
||||
customDialogList.getValue(),
|
||||
arrayOf("saleGroup"),
|
||||
field = "id"
|
||||
).toString()
|
||||
)
|
||||
if (listSalesGroup.firstOrNull { it.code == customDialogList.getValue() } == null) {
|
||||
listSalesGroup.add(0, BarcodeVO(code = customDialogList.getValue()))
|
||||
viewModel.sectorCollectionSaleGroupAdd(
|
||||
|
@ -277,7 +286,7 @@ class SectorCollectionReserveFragment(
|
|||
loadResponseHasSaleReserved.observe(viewLifecycleOwner) { event ->
|
||||
event.getContentIfNotHandled().notNull {
|
||||
|
||||
if (it == "1") {
|
||||
if (it > 0) {
|
||||
isReserved = true
|
||||
gotoPicker()
|
||||
} else {
|
||||
|
|
|
@ -85,7 +85,7 @@ class ShowTicketFragment(var menuOrigin: String) :
|
|||
|
||||
viewModel.getSales(
|
||||
collectionFk = itemScanValue(
|
||||
binding.scanInput.text.toString(), "ticket", "id"
|
||||
binding.scanInput.text.toString(), arrayOf("ticket","saleGroup"), "id"
|
||||
).toString().toInt(),
|
||||
print = false,
|
||||
source = type
|
||||
|
|
Loading…
Reference in New Issue