Shipment has no status nor warehousecode

Vote:
 

Version CM 10.7.2

Hi experts, 

Having some problem since last update to 10.7.2. Somehow the customer makes the purchase and ONLY SOME PurchaseOrder only have one shipment and doesnt have any status (normal is waiting inventory) and warehousecode is emptystring.

Some orders are working and some NOT... 

We are running following when customer checkout is finished

...

OrderGroupWorkflowManager.RunWorkflow(cart, OrderGroupWorkflowManager.CartCheckOutWorkflowName);

...

po = cart.SaveAsPurchaseOrder();

...

   po.AcceptChanges();

...

// Remove old cart
cart.Delete();
cart.AcceptChanges();

What am i missing? has something changed?

#180838
Edited, Jul 28, 2017 12:53
Vote:
 

Which version did you upgrade from? In 9.22 LineItem.WarehouseCode was obsoleted and we use Shipment.WarehouseCode instead. Perhaps you have some code that rely on LineItem.WarehouseCode? 

#180846
Jul 28, 2017 15:11
Vote:
 

yes, there is use of LineItem.WarehouseCode in the code...

but in what process is the shipment split up per warehouse and the shipment.WarehouseCode set? 

Regards

#180848
Jul 28, 2017 15:31
Vote:
 

It's in GetFulfillmentWarehouseActivity, which is used in many workflows, like CartValidate, CartPrepare etc.

#180849
Jul 28, 2017 15:48
Vote:
 

allright, checked it out, but i still dont get where the shipment are split per warehouse. Somehow it fails sometimes in our solution.

Is it still normal practice to  addtocart with form.LineItems.Add(item)? you are not suppose to create shipment when you add lineitem to cart, are you?

#180864
Edited, Jul 31, 2017 8:59
Vote:
 

Anyhow... the problem was that when you logged in / registered in checkout, you are handling the cart from anonymous to logged in. I had to run CartValidate after that procedure (on the new cart) to make it work.

Regards

#181009
Aug 06, 2017 11:51
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.