20 May 2014

SalesCreditLimitApprEventHandler class. in salescreditlimitapprovalWFtype



//SalesCreditLimitApprEventHandler class.
in salescreditlimitapprovalWFtype

method   : Completed

public void completed(WorkflowEventArgs _workflowEventArgs)
{
SalesTable SalesTable;
select forupdate SalesTable where SalesTable.RecId ==
_workflowEventArgs.parmWorkflowContext().parmRecId();
if(SalesTable.RecId)
{
SalesTable.CreditLimitApprovalStatus =
SalesCreditLimitApprovalStatus::Approved;
SalesTable.write();
}

No comments:

Post a Comment