Try our conversational search powered by Generative AI!

How to remove existing line items from purchase order?

Vote:
 

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?

Regards,

Manik

#200059
Dec 28, 2018 14:04
Vote:
 

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 

#200060
Edited, Dec 28, 2018 14:10
Vote:
 

Thanks for your information , i will look into it .

#200061
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.