feat: refs #5216 changeState
This commit is contained in:
parent
d7ca5c3e08
commit
937b06c198
|
@ -182,11 +182,13 @@ class LoadUnloadFragment(
|
|||
for (l in list) {
|
||||
mlist.add(
|
||||
ExpeditionSalix(
|
||||
expeditionFk = l.id, stateCode = if (l.code != state && l.code != "FOUND") {
|
||||
expeditionFk = l.id,
|
||||
stateCode = if (l.code != state && l.code != "FOUND" && l.code != "DELIVERED") {
|
||||
"LOST"
|
||||
} else {
|
||||
l.code
|
||||
}, isScanned = l.isScanned
|
||||
},
|
||||
isScanned = l.isScanned
|
||||
)
|
||||
)
|
||||
}
|
||||
|
@ -459,7 +461,9 @@ class LoadUnloadFragment(
|
|||
binding.expeditionloadunloadRecyclerview.layoutManager =
|
||||
LinearLayoutManager(requireContext(), LinearLayoutManager.VERTICAL, false)
|
||||
binding.mainToolbar.toolbarSubtitle.text = getString(
|
||||
R.string.summaryCount, myList.filter { it.code == state }.size, myList.size
|
||||
R.string.summaryCount,
|
||||
myList.filter { it.code == state || it.code == "DELIVERED" }.size,
|
||||
myList.size
|
||||
)
|
||||
|
||||
setListPosition(myList)
|
||||
|
|
|
@ -152,7 +152,7 @@ class SummaryFragment(
|
|||
) {
|
||||
val listExpedition = list.filter { it.addressFk == address }.map { l ->
|
||||
ExpeditionSalix(
|
||||
expeditionFk = l.id, stateCode = if (l.code == state) {
|
||||
expeditionFk = l.id, stateCode = if (l.code == state && l.code != "DELIVERED") {
|
||||
state
|
||||
} else {
|
||||
"FOUND"
|
||||
|
|
Loading…
Reference in New Issue