From a0ae1e37f166bcf1261f58133a354da80d197947 Mon Sep 17 00:00:00 2001 From: Sergio De la torre Date: Mon, 27 Jan 2025 07:36:44 +0100 Subject: [PATCH] feat: refs#8290 expeditionLost --- .../view/feature/delivery/fragments/LoadUnloadFragment.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/fragments/LoadUnloadFragment.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/fragments/LoadUnloadFragment.kt index 16e2aa60..2d05467a 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/fragments/LoadUnloadFragment.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/fragments/LoadUnloadFragment.kt @@ -199,10 +199,10 @@ class LoadUnloadFragment( ExpeditionSalixPosition( expeditionFk = l.id, stateCode = if (l.code == "FOUND") (l.code) else { - if (state == "ON DELIVERY" && l.code != "ON DELIVERY" && l.code != "DELIVERED" && l.code != "LOST") { + if (state == "ON DELIVERY" && l.code != "ON DELIVERY" && l.code != "DELIVERED" && l.code != "LOST" && l.code != "PENDING") { "NOT SCANNED" } else { - if (state == "DELIVERED" && l.code != "DELIVERED") "LOST" else l.code + if (state == "DELIVERED" && l.code != "DELIVERED") "PENDING" else l.code } }, isScanned = l.isScanned, @@ -478,7 +478,7 @@ class LoadUnloadFragment( code = if (item.code == "DELIVERED" || item.code == "ON DELIVERY") { item.code } else { - "LOST" + "PENDING" }, nickname = item.nickname, postalCode = item.postalCode