-
-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OBPIH-6327 Data model should support "to pick" and "picked" stages #4602
Conversation
@@ -40,7 +40,8 @@ class PicklistItem implements Serializable { | |||
InventoryItem inventoryItem | |||
Location binLocation | |||
|
|||
Integer quantity | |||
Integer quantity // quantity = quantity picked | |||
Integer quantityToPick |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to add the field to the toJson method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add quantityPicked. The quantity property should be quantity to pick.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to add the field to the toJson method?
Oh and to answer your question, Evan, we don't need to right now since in the PIH world quantity to pick (quantity) always equals quantity picked (quantityPicked). So essentially allocated and picked happen at exactly the same. This is not the ideal since there are important states and exceptions that occur between Allocated and Picked, but it's fine for PIH's default use case. At least for now. In addition, adding a state machine for the picking workflow would add overhead that would not likely not benefit for PIH until these events were important to track. That would change the minute PIH decided that it was important to allow short picks / overpicks or place a hold on a bin location when an item was not found in that location.
Fwiw, the OBKN API (and the mobile app built on top) support a picking state machine that allows for a more complex picking workflow (including exceptions like partial pick, short picks, overpick, reallocation, etc).
A typical state machine transition for a pick item might look like this.
Allocated -> To Pick -> Picking -> Picked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the confusion, I took wording from the ticket as the way we want to have it and added a comment around this (plus I was kinda influenced by the "not take look to obkn too much", and potentially it feels like we might need to change more places in future for example we will have to adjust the getQuantityPickedByProductAndLocation
in ProductAvailabilityService
, and probably few other places like that). I don't have an issue with having it the way it was.
Additional to dos / next steps:
- (as we discussed on slack internally) I think it would be worth to add to the migration a changeset changing the data from the past (that would at least populate quantity picked with the quantity field), especially if we are going to change the existing logic in other places to use
quantityPicked
instead ofquantity
- as Even suggested please add these new fields to toJson
- I think you could add for now in the
createOrUpdatePicklistItem
:
picklistItem.quantityPicked = quantity
(that one is not that required, because this will be probably adjusted eitherway in the next ticket from this epic) - you could also try to find places where the quantity from PicklistItem is being used, to prepare a list where it will have to be adjusted in the next and we can discuss on the tech huddle channel where and when we have to change it
So, at this moment:
|
No description provided.