diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/collection/adapter/SaleAdapter.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/collection/adapter/SaleAdapter.kt index 60026bec..5002a4a1 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/collection/adapter/SaleAdapter.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/collection/adapter/SaleAdapter.kt @@ -421,6 +421,12 @@ class SaleAdapter( if (type == SACADOR || type == CONTROLADOR) { itemTicketColor.tooltipText = context!!.getString(R.string.filterLevelColor) } + + /* ticketFk.paintFlags = ticketFk.paintFlags or Paint.UNDERLINE_TEXT_FLAG + itemArticleItemFk.paintFlags = + itemArticleItemFk.paintFlags or Paint.UNDERLINE_TEXT_FLAG*/ + + this.sale = sale } diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/fragments/TicketsFragment.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/fragments/TicketsFragment.kt index 3eec5c66..0abb0e6e 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/fragments/TicketsFragment.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/fragments/TicketsFragment.kt @@ -31,6 +31,7 @@ import es.verdnatura.presentation.common.GeneralAdapter import es.verdnatura.presentation.common.GeneralItem import es.verdnatura.presentation.common.ItemDescorationCustomized import es.verdnatura.presentation.common.OnGeneralItemRowClickListener +import es.verdnatura.presentation.common.OnGeneralRowClickListener import es.verdnatura.presentation.common.OnItemButtonCMRRowClickListener import es.verdnatura.presentation.common.OnItemButtonTicketRowClickListener import es.verdnatura.presentation.common.OnOptionsSelectedListener @@ -607,32 +608,33 @@ class TicketsFragment : BaseFragment( customDialogList.dismiss() }.hideDialog().show() - val listPhonesAdapter = GeneralAdapter(phones, object : OnGeneralItemRowClickListener { - override fun onGeneralItemRowClickListener(item: GeneralItem) { - phones.forEach { - if (it.code == item.code) { - if (ContextCompat.checkSelfPermission( - requireContext(), Manifest.permission.CALL_PHONE - ) == PackageManager.PERMISSION_GRANTED - ) { - val callIntent = Intent(Intent.ACTION_CALL) - callIntent.data = Uri.parse("tel:${it.code}") - startActivity(callIntent) - return@forEach + val listPhonesAdapter = + GeneralAdapter(phones, onRowClickListener = object : OnGeneralRowClickListener { + override fun onRowClickListener(item: GeneralItem) { + phones.forEach { + if (it.code == item.code) { + if (ContextCompat.checkSelfPermission( + requireContext(), Manifest.permission.CALL_PHONE + ) == PackageManager.PERMISSION_GRANTED + ) { + val callIntent = Intent(Intent.ACTION_CALL) + callIntent.data = Uri.parse("tel:${it.code}") + startActivity(callIntent) + return@forEach + } + } else { + ActivityCompat.requestPermissions( + context as Activity, + arrayOf(Manifest.permission.CALL_PHONE), + REQUEST_CALL_PERMISSION + ) } - } else { - ActivityCompat.requestPermissions( - context as Activity, - arrayOf(Manifest.permission.CALL_PHONE), - REQUEST_CALL_PERMISSION - ) + customDialogList.dismiss() } - customDialogList.dismiss() } - } - }) + }) customDialogList.getRecyclerView().adapter = listPhonesAdapter customDialogList.getRecyclerView().layoutManager = diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/sacador/model/TicketItemVO.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/sacador/model/TicketItemVO.kt index 7bb60ab5..5a6cab61 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/sacador/model/TicketItemVO.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/sacador/model/TicketItemVO.kt @@ -156,7 +156,7 @@ class SaleVO( var cel1: String = "", var cel2: String = "", var cel3: String = "", - var saleGroupFk: String = "", + var saleGroupFk: String? = "", var picked: String? = "", var isParent: Boolean = false, var totalSales: Int = 0, diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorFragmentNew.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorFragmentNew.kt index b6315cc9..76bb8fa4 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorFragmentNew.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorFragmentNew.kt @@ -217,18 +217,20 @@ class UbicadorFragmentNew : BaseFragment showAddItemNew( isEditItem = false, null ) - iconAddMultiple.drawable -> + iconAddMultiple.drawable -> { + ma.onPasillerosItemClickListener( PasillerosItemVO( title = R.string.addItemMultipleShelving, ), entryPoint = getString(R.string.addItemMultipleShelving) ) + } iconReload.drawable -> { @@ -342,6 +344,7 @@ class UbicadorFragmentNew : BaseFragment + listItems.clear() event.getContentIfNotHandled().notNull { it -> - if (isShelvinLogfromMainScreen) { viewModel.shelvingLogAdd(shelvingFk) } listItems.addAll(it.list) listItems.forEach { item -> - println("description **************************${item.description}") - println("description ${item.description}") - println("description longName${item.longName}") - println("description name ${item.name}") - println("description size ${item.size ?: ""}") if (item.description.isNullOrEmpty()) { item.description = item.longName ?: "${item.name ?: ""} ${item.size ?: ""}" @@ -548,7 +546,7 @@ class UbicadorFragmentNew : BaseFragment + + + diff --git a/app/src/main/res/drawable/ic_click_black.xml b/app/src/main/res/drawable/ic_click_black.xml new file mode 100644 index 00000000..69a6cf0f --- /dev/null +++ b/app/src/main/res/drawable/ic_click_black.xml @@ -0,0 +1,10 @@ + + + + diff --git a/app/src/main/res/layout/item_article_row_fragment.xml b/app/src/main/res/layout/item_article_row_fragment.xml index e280d80f..af4033aa 100644 --- a/app/src/main/res/layout/item_article_row_fragment.xml +++ b/app/src/main/res/layout/item_article_row_fragment.xml @@ -82,6 +82,7 @@ android:textColor="@color/verdnatura_black" android:textSize="@dimen/h8" android:textStyle="bold" /> + - -