20 May 2014

Workflow type Method in Salestable "cnaSubmitToWorkFlow"

Workflow type Method in Salestable "cnaSubmitToWorkFlow"

// Workflow type Method in Salestable "cnaSubmitToWorkFlow"


boolean canSubmitToWorkflow(str _workflowType = '')
{
amountMST creditBalance;
custTable custTable;
;
if (!this.CreditLimitApprovalStatus ==
SalesCreditLimitApprovalStatus::NotSubmitted)
return false;
custTable = this.custTable_InvoiceAccount();
if (!custTable.CreditMax)
return false;
creditBalance = custTable.CreditMax -custTable.balanceMST();
if (this.amountRemainSalesFinancial() +
this.amountRemainSalesPhysical() < creditBalance)
return false;
return true;
}

No comments:

Post a Comment