We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug SplitOrder strategy works well on execution, but the shippingLines data is not persisted.
To Reproduce Steps to reproduce the behavior: easier way : Make a multi seller order, and then look at the aggregateOrder and the sellerOrder.
Expected behavior To have shipping lines persisted and then returned by Api in SellerOrder, ( admin, emails )
Environment (please complete the following information):
Additional context Some hydration not happening somewhere ? some logs from splitOrderStrategy execution :
This is showing a shipping line in the splitOrder function return.
[server] splitOrder ~ [...partialOrders.values()][0].shippingLines: [ [server] ShippingLine { [server] createdAt: 2024-05-14T09:42:52.572Z, [server] updatedAt: 2024-05-14T09:42:52.000Z, [server] listPriceIncludesTax: false, [server] adjustments: [], [server] taxLines: [ [Object] ], [server] id: 172, [server] shippingMethodId: 45, [server] listPrice: 200, [server] price: [Getter], [server] priceWithTax: [Getter], [server] discountedPrice: [Getter], [server] discountedPriceWithTax: [Getter], [server] taxRate: [Getter], [server] discounts: [Getter] [server] } [server] ]
Full Array returned by SplitOrder looklike this :
[server] splitOrder ~ [...partialOrders.values()]: [ [server] { [server] channelId: 33, [server] shippingLines: [ [ShippingLine] ], [server] lines: [ [OrderLine] ], [server] state: 'ArrangingPayment' [server] }, [server] { [server] channelId: 5, [server] shippingLines: [ [ShippingLine] ], [server] lines: [ [OrderLine] ], [server] state: 'ArrangingPayment' [server] } [server] ]
The text was updated successfully, but these errors were encountered:
in order.service ? missing some lines relation ?
getSellerOrders(ctx: RequestContext, order: Order): Promise<Order[]> { return this.connection.getRepository(ctx, Order).find({ where: { aggregateOrderId: order.id, }, relations: ['channels'], }); }
Sorry, something went wrong.
fix(core): Add field resolver for Order.shippingLines
84ec0aa
Relates to #2859
fix(core): Fix splitting of shippingLines on multivendor orders
9112dd8
michaelbromley
No branches or pull requests
Describe the bug
SplitOrder strategy works well on execution, but the shippingLines data is not persisted.
To Reproduce
Steps to reproduce the behavior:
easier way : Make a multi seller order, and then look at the aggregateOrder and the sellerOrder.
Expected behavior
To have shipping lines persisted and then returned by Api in SellerOrder, ( admin, emails )
Environment (please complete the following information):
Additional context
Some hydration not happening somewhere ?
some logs from splitOrderStrategy execution :
This is showing a shipping line in the splitOrder function return.
Full Array returned by SplitOrder looklike this :
The text was updated successfully, but these errors were encountered: