-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Are we supposed to transfer a ready shipment to another stock location? #1684
Comments
This seems to be related to #97. Looking at transfer to location code, when we remove the line item from order contents it also destroys all line item inventory units. Specs are passing because it uses an order factory that has a I think what we currently have is not the expected behavior, we should let users transfer content of a ready shipment into another stock location. |
So is it safe to replace
to
because the things is the UI is currently allowing transferring stock location for a shipment in READY state |
Honestly, I'm not sure if we'll have unexpected side effects allowing to destroy inventory units of ready shipments. Probably it's better to wait for someone else opinion/comment. |
We discussed this in core, and we think this is an oversight. The Also, going through |
Prior to this commit, this would not work because the destruction of the original shipment would result in an exception being thrown. Ready shipments can be edited and thus have to be able to be destroyed, too. Fixes solidusio#1684
The UI show that we are allowed to transfer a shipment in READY state to another stock location but InventoryUnit did had destroy validation that forbid destroying associated with shipment in READY state. Is that a bug?
The text was updated successfully, but these errors were encountered: