Need ability (OM Extension) to apply credit check hold if last update date is more that 30 days past — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Need ability (OM Extension) to apply credit check hold if last update date is more that 30 days past

Summary:

We have created the extension to skip credit check on order revision if order total amount not more than original order amount, however we also want to apply credit check, if last update date is more than 30 days past. below is the code which we have used

Content (please ensure you mask any confidential information):

import oracle.apps.scm.doo.common.extensions.ValidationException;
import oracle.apps.scm.doo.common.extensions.Message;

String headerId = header.getAttribute("HeaderId");
String refHeaderId = header.getAttribute("ReferenceHeaderId");

String OrderNumber = header.getAttribute("OrderNumber");

//skip if its new order
if( refHeaderId == null ) return;

def currTotal;
def refTotal;

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!