OM Extension to Skip the Credit check based on Order type
Summary:
For our client the Credit check should not be enabled for a particular Ordertype.
I used the Skip credit check for Revision order code as a reference and tried by inserting the Order type.
But still for the Order type the order is going for Credit check .
Content (please ensure you mask any confidential information):
Below is the Om extension used
import oracle.apps.scm.doo.common.extensions.ValidationException;Boolean isCCMgmtEnabled = false;
BigDecimal refHeaderId = header.getAttribute("ReferenceHeaderId");
String orderTypeCode = header.getAttribute("TransactionTypeCode");
if(refHeaderId != null)
{
def lookupVO =context.getViewObject("oracle.apps.financials.assets.shared.publicView.LookupPVO");
def vc = lookupVO.createViewCriteria();