Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

EPI Server Commerce Issue For Multi shipment Implementation.

Vote:
 

Hi ,

I have a problem with multi-shipment

1) var lineItems = Cart.OrderForms[0].LineItems;

foreach (LineItem lineItem in lineItems)

{

        Shipment shipment = new Shipment();

        shipment.CreatorId = SecurityContext.Current.CurrentUserId.ToString();

        shipment.Created = DateTime.UtcNow;

shipment.AddLineItemIndex(lineItems.IndexOf(lineItem), lineItem.Quantity);

        Cart.OrderForms[0].Shipments.Add(shipment);

}

Cart.AcceptChanges();

Ref:

http://world.episerver.com/documentation/Items/Developers-Guide/Episerver-Commerce/9/Shipping/Multi-shipment-examples/

In this scenario my case is :-

ITEM

Price

Quantity

Total

Discount %

Discount

Amount

Rest Amount

ITEM-1

9.00

5

45.00

10%

4.5

40.5

 

 In shipment 1

ITEM

Price

Quantity

Total

Discount %

Discount

Amount

Rest Amount

ITEM-1

9.00

3

27.00

10%

2.7

24.3

In shipment 2

ITEM

Price

Quantity

Total

Discount %

Discount

Amount

Rest Amount

ITEM-1

9.00

2

18.00

10%

1.8

16.2

Now After Ordering what we find that in commerce manager

The Issue in result is:-

In shipment 1

ITEM

Quantity

List Price

Placed Price

Total Discount

 

Total

ITEM-1

3

9.00

9.00

1.80

24.30

 

 

 

In shipment 2

ITEM

Quantity

List Price

Placed Price

Total Discount

 

Total

ITEM-1

2

9.00

9.00

1.80

16.20

 

As the line item is same then

Total Discount should 1.80 for shipment 1 and 2.7 for 2nd shipment.

 

2)When I am splitting line items for difference shipment.

To assign specific items in specific shipment then before completing the order if we go to our check out the same items are showing as different spitted that is making a mess.

So what should the possible solution to show proper discount in commerce manager and

Is it possible to stop work flow check in some specific operation in commerce manager?

If possible then please explain multi shipment correct process flow.

 

#176092
Mar 09, 2017 14:51
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.