Try our conversational search powered by Generative AI!

ShippingAddress not moved when using SaveAsPurchaseOrder [11.3]

Vote:
 

Hi!

When I'm using the 

_orderRepository.SaveAsPurchaseOrder(cart);

the Shipment.ShippingAddress is not transferred?

The cart object has an address but when I load the newly created PurchaseOrder the Shipment.ShippingAddress is null.

Am I doing something wrong or could this be a bug?

/Kristoffer

#185202
Nov 11, 2017 2:14
Vote:
 

As in other thread, can you post your cart data here? 

#185208
Nov 11, 2017 13:27
Vote:
 

Looks like sleep sometimes solves my problems. Exact same code today works just fine and the ShippingAddress is added to the PurchaseOrder. Maybe there where some invalid id somewhere as well?

It works now, that is most important.

/Kristoffer

#185214
Nov 11, 2017 16:29
* 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.