Any way to update an already existing purchase?


Hello there,

I'm on a situation where I need to update already existing purchases. There are new discounts and prices that should be applied to several previous purchases and, therefore, totals, gross totals, shipments, etc... should be recalculated. Is it any way to quickly update a purchase order besides having to recreate it again?

Thank you and kind regards,


Jul 01, 2014 16:09

As additional information, I tried to do the following:

PurchaseOrder p = OrderContext.Current.GetPurchaseOrderById(1817);
                OrderGroupWorkflowManager.RunWorkflow(p, OrderGroupWorkflowManager.OrderRecalculateWorkflowName);

But when running the workflow, a NullreferenceException is raised (and I made sure through debugger that PurchaseOrder p is not null).

Jul 01, 2014 16:15


Did you try with

OrderGroupWorkflowManager.RunWorkflow(p, OrderGroupWorkflowManager.OrderRecalculateWorkflowName, false); ?



Jul 02, 2014 4:32

Thanks for answering, Quan Mai. Unafortunately, even though an exception is not raised, the purchase is not update with new discounts as I'd wish.

Jul 03, 2014 16:03
* 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.