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");
Tagged:
0