Hello,
I have a source code for the approbation for purchase which works well at acumatica 2020R1.
When I did the migration to 2020R2 then it does not work the approval function.
I want to know what the problem is exactly.
protected void createRecipt(POOrder order, List<POLine> PoOrderLine, SOShipment shipment, SOShipment newshipment, POOrderEntry graph1)
{
PXAdapter adapter3 = new PXAdapter(new DummyView(graph1, graph1.Document.View.BqlSelect,
new List<object> { graph1.Document.Current }));
adapter3.Menu = "Approve";
PXAutomation.CompleteAction(graph1);
adapter3.Arguments = new Dictionary<string, object>();
adapter3.Arguments.Add("actionID", 1);
graph1.action.PressButton(adapter3);
}
Exception : PX.Data.PXLockViolationException

Best regards