feat: refs#8290 expeditionLost
This commit is contained in:
parent
361ebddd2f
commit
a0ae1e37f1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue