From 3f8d3737f63303f5512fbf0c8590e0a9077f7c4d Mon Sep 17 00:00:00 2001 From: Sergio De la torre Date: Wed, 18 Sep 2024 13:09:30 +0200 Subject: [PATCH] feat: refs #6769 refactor Item_getBalance --- .../historicoarticulo/fragment/HistoricoArticuloFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/historicoarticulo/fragment/HistoricoArticuloFragment.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/historicoarticulo/fragment/HistoricoArticuloFragment.kt index eabe3e7d..32afaf2a 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/historicoarticulo/fragment/HistoricoArticuloFragment.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/historicoarticulo/fragment/HistoricoArticuloFragment.kt @@ -197,7 +197,7 @@ class HistoricoArticuloFragment( if (compareShipped == 0) { if (item1.order == null && item2.order == null) { item2.balance!!.compareTo(item1.balance!!) // Comparar por balance cuando ambos órdenes son nulos - }else if (item1.order == null) { + } else if (item1.order == null) { -1 } else if (item2.order == null) { 1 @@ -229,7 +229,7 @@ class HistoricoArticuloFragment( customDialog = CustomDialog(requireContext()) customDialog .setTitle(getString(R.string.entry)) - .setDescription(item.entityId.toString()) + .setDescription(item.originId.toString()) .setOkButton( getString( R.string.accept