Describe the bug
We encountered an issue regarding the absence of shipping methods in the order generated after payment completion. This problem occurred due to the duplication of shipping method items without assigning new IDs to the orderLines that had the shippingLineId attribute.
In particular the problem is partially caused by this changes (f04b033c7d6689ee0704c0f0409d01c6aa637105), in the file "order-calculator.ts". This because the Ids of the shipping lines are not matching anymore with the orderLine.shippingLineId
This behavior is happening with a single seller in the Order.
To Reproduce
Steps to reproduce the behavior:
Create a new order with multiple items of different sellers (channels)
Make sure each seller have is own Shipping Method assigned
Complete the order with a Payment
Access the Admin panel with a Super User
Go to "Orders"
You will have multiple Orders, one containing all the Sellers products (Aggregate Order) and the other one (Seller Orders)
Open the Seller Order and you will see that the shipping methods are missing but not in the Aggregate one.
Expected behavior
The Shipping Methods must be present also in the Seller Order as the older Vendure versions
Environment:
@vendure/core version: 2.1.8
Nodejs version: 18.16.1
Database (mysql/postgres etc): PostgreSQL 13.14 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-12), 64-bit
Additional context
This is the Aggregate Order, as you can see the shipping methods are correctly assigned.
This a Seller Order and the shipping methods are missing, same as the second one showed below
Describe the bug We encountered an issue regarding the absence of shipping methods in the order generated after payment completion. This problem occurred due to the duplication of shipping method items without assigning new IDs to the orderLines that had the shippingLineId attribute.
In particular the problem is partially caused by this changes (f04b033c7d6689ee0704c0f0409d01c6aa637105), in the file "order-calculator.ts". This because the Ids of the shipping lines are not matching anymore with the orderLine.shippingLineId
This behavior is happening with a single seller in the Order. To Reproduce Steps to reproduce the behavior:
Expected behavior The Shipping Methods must be present also in the Seller Order as the older Vendure versions
Environment:
Additional context
This is the Aggregate Order, as you can see the shipping methods are correctly assigned.
This a Seller Order and the shipping methods are missing, same as the second one showed below