-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add splitOrderItem mutation #5024
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
Conversation
Signed-off-by: Eric Dobbertin <[email protected]>
Signed-off-by: Eric Dobbertin <[email protected]>
Signed-off-by: Eric Dobbertin <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
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.
Overall looks good, one issue I came across where Taxes are not split between items, but aside from that:
- subtotal updates as it should
- the items move as they should
- the restrictions on quantity work, you can only move
x-1items, always leaving at least one in the original item - Account restrictions work
Should be good to go once taxes are fixed.
|
@kieckhafer The tax and other total recalculation issues should be fixed now |
Signed-off-by: Eric Dobbertin <[email protected]>
kieckhafer
left a comment
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.
👍 Changes look good, Taxes and subtotals now move with the item
Part of #4999
Impact: minor
Type: feature
Changes
A new
splitOrderItemmutation allows you to split one order item into two items, such that the two items are identical other than their quantity and subtotal, and their quantities add up to the original item's quantity.The operator UI does not yet implement this.
splitOrderItemcan be called internally to synchronize from an external system by settingcontext.isInternalCalltotruesplitOrderItemcan be called through GraphQL by any user with "orders" permission for the shop that owns the orderBreaking changes
None
Testing