metasfresh / metasfresh-webui-api-legacy

metasfresh webui API server
GNU General Public License v3.0
30 stars 32 forks source link

Update QtyPicked after picking #810

Closed metas-lc closed 6 years ago

metas-lc commented 6 years ago

Is this a bug or feature request?

bug

What is the current behavior?

qty picked is not update after picking

Which are the steps to reproduce?

see https://github.com/metasfresh/metasfresh-webui-frontend/issues/1217

i noticed it never updates if the picking slot has the wrong locator picking terminal updates only after you close the window and open it again

What is the expected or desired behavior?

shall update

teosarca commented 6 years ago

note to IT:

metas-mk commented 6 years ago

Quick check. Picking refreshes the picked Qty. OK. Unpicking from Picking Slot does not refresh the Picked Qty. On Main window its refreshed although.

image

metas-ts commented 6 years ago

:cherries: to release

metas-lc commented 6 years ago

IT

  1. make sure you have enough HUs in warehouse x

  2. create a new sales order for that warehouse and complete it (qty 100, 10 TUs)

  3. go to picking terminal, select your line and pick => qty to deliver 100, qty picked 0

  4. select a slot and open hu selection window

  5. pick 5 TUs => notice that the qtys on the left side don't update NOK (qty picked should update to 50) note that it might be related with that refresh issue

  6. process a picking => qty to deliver = 90 OK => qty picked = 40 OK

  7. pick 6 more HUs, and reactivate a processed hu => qty to deliver = 100 OK => qty picked = 110 OK

  8. process all HUs => on the last unprocessed HU, qty to deliver and qty picked were both 10 (i was expecting qty to deliver to be 0) OK? => after i processed all HUs, the line from left side disappeared

  9. reactivated some pickings => the line didn't come back at first, only when i got to the third reactivated hu-or while reactivating the 3rd one (qty to deliver =20 and qty picked=30 ) NOK?

  10. selected an HU, used unpick HU => hu disappeared and qty picked updated to 20 (with -10) OK cache: if you press done, qty picked (planned) in grid view is 30 (if you refresh it becomes 20)

  11. open picking again. Pick to new HU => qty picked updates OK

recap:

  1. when you pick from hu selection window, qty picked does not update (checked: m_packageable_v updates ok)
  2. if you have 10 TUs to deliver and you pick 11, and process all TUs 1 by 1, when you get to the 11th, qty picked and qty to deliver are both 10. I was expecting qty to deliver to be 0 (is it because not all picked HUs are processed?) (checked M_Packageable_V - on this step there is no data. So the line shall disappear)
  3. if the line disappears because qty to deliver reaches 0, if you start reactivating some pickings, the line appears only at the 3rd one (i expect after the 2nd. Maybe i didn't wait enough?) (checked M_Packageable_V.. on the second step the line was back)
  4. if you unpick an HU and press done, and you get back in grid view => qty picked is not update (in m_packageable_v is fine)

for problems 2 and 3 it looks like the front is 1 step behind when it comes to remove/add line

teosarca commented 6 years ago

note to IT: In case rows vanish (i.e. you received everything so QtyToDeliver <= 0) or reappear (you reactivate a picking candidate) there is still some weird behavior until https://github.com/metasfresh/metasfresh-webui-frontend/issues/1627 is delivered

metas-lc commented 6 years ago

IT retest the cases above:

  1. qty picked on left side updates OK 8 and 9. works the same, with the difference that i was not allowed to process the last hu. It will be fixed in metasfresh/metasfresh-webui-frontend#1627

other: qty ordered 50. pick 10 => qty picked planned =10. OK unpick that hu => qty picked planned =0. OK press done => qty picked planned =10. NOK will be fixed in https://github.com/metasfresh/metasfresh-webui-api/issues/936 (noticed that qty to deliver updates correctly on main window)