Skip to main content

Posts

Showing posts from June, 2017

Code for Resubmit workflow after rejection in Ax 2012

I am sharing here code Code for Resubmit workflow after rejection in Ax 2012. You need to write code in resubmit action manager class i.e. WFApprovalWFResubmitActionMgr. Code snippets is as below. At the end of the code you need to call _args.caller().updateWorkflowControls(); to update workflow control. In main method you need to call this method to work resubmitting functionality of workflow. 

How to get Reserved Quantity for Sales Line in Ax 2012

If you want to get total of reserved quantity Sales line wise then you can do the following way. First you need to create view as per below picture. Then you can try below code in job to get reserved quantity for sales line item. GOD_InventTransView GOD_InventTransView; select sum(Qty) from GOD_InventTransView where GOD_InventTransView.ReferenceId==_salesline1.SalesId && GOD_InventTransView.ItemId==_salesline1.ItemId && GOD_InventTransView.InventTransId==_salesline1.InventTransId && GOD_InventTransView.StatusIssue == StatusIssue::ReservPhysical;