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

Skip credit check extension during revision not working

Summary:

To skip credit check when amount is same as original version. We have tried this groovy at Start of Submit as well on Save and it is not working.

Content (please ensure you mask any confidential information):

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

BigDecimal headerId = header.getAttribute("HeaderId");
BigDecimal refHeaderId = header.getAttribute("ReferenceHeaderId");
Boolean ccHoldFoundOnOriginalLines = false;

if(refHeaderId != null)
{
BigDecimal currentOrderAmount = new BigDecimal(0);
BigDecimal refTotalAmount = new BigDecimal(0);

def orderTotals = header.getAttribute("OrderTotals"); 
orderTotals.reset();

while(orderTotals.hasNext()) {
def orderTotal = orderTotals.next();
String totalCode = orderTotal.getAttribute("TotalCode");

if(totalCode.equals("QP_TOTAL_PAY_NOW"))
{
currentOrderAmount = orderTotal.getAttribute("TotalAmount");

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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