solidus
solidus copied to clipboard
Keep backorders when splitting part of variant to new shipment with same SL
Summary
Fixes #5669
When splitting a shipment to the same stock location, when not the whole quantity for the variant is moved it may happen, if there are backordered items, that these disappear (they become on hand).
This PR first reworks and adds further coverage to specs for the Spree::FulfilmentChanger
service to expose the issue, then addresses it in the last commit.
https://github.com/solidusio/solidus/assets/141220/eea2c906-6a8d-44b4-83cd-8b7207b0b78a
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
- [x] I have written a thorough PR description.
- [x] I have kept my commits small and atomic.
- [x] [I have used clear, explanatory commit messages]
- [x] I have added automated tests to cover my changes.
Hey @spaghetticode, is this still a draft intentionally or can we start reviewing?
@kennyadsl it should be good for review, I'm sorry for the confusion.