Try our conversational search powered by Generative AI!

How to remove existing line items from purchase order?


We are trying to remove line items which are already present in the purchase order. Basically we wanted to change the product code in the line items of the purchase order. Is there any specific way to remove that information?



Dec 28, 2018 14:04

If you are using the abstraction APIs, just remove the line item from the IShipment.LineItems (then call IOrderRepository.Save to save the order)

If you are still using the concrete implementations, take a look at PurchaseOrderManager.RemoveLineItemFromOrder(OrderGroup, lineItemId), then use order.AcceptChanges to save the changes 

Edited, Dec 28, 2018 14:10

Thanks for your information , i will look into it .

Dec 28, 2018 14:28
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.