Skip to content

Conversation

pull[bot]
Copy link

@pull pull bot commented Sep 9, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.3)

Can you help keep this open source service alive? 💖 Please sponsor : )

adammathys and others added 5 commits September 5, 2025 18:26
When splitting backordered inventory units, we were incorrectly sending
all backordered units to the desired shipment, regardless of the
quantity chosen.

Our original work on this changed from computing on_hand units first to
the backordered ones. Unfortunately, we missed that we should only ever
move as many as was requested, not all of the possible backordered ones.
When cancelling all items in a completed order, if the shipment is not
already shipped, it should be marked as cancelled. However, if the
shipment has already shipped, we should maintain its state because we
treat that state as immutable.
At least, in terms of the state. We shouldn't mark shipped shipments as
cancelled even if all of the items in the shipment get cancelled.

If a shipment has been marked as shipped, then we need to preserve that
state.
…tting

Fix issue with splitting backordered units
@pull pull bot locked and limited conversation to collaborators Sep 9, 2025
@pull pull bot added the ⤵️ pull label Sep 9, 2025
@pull pull bot merged commit 4671f9a into nebulab:main Sep 9, 2025
36 of 37 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants