feat: refs#8290 expeditionLost

This commit is contained in:
Sergio De la torre 2025-01-27 07:36:44 +01:00
parent 361ebddd2f
commit a0ae1e37f1
1 changed files with 3 additions and 3 deletions

View File

@ -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