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

Manage Order Management Extension groovy Scripting using IN/OR help required.

Summary:

Manage Order Management Extension groovy Scripting using IN/OR help required.

Content (please ensure you mask any confidential information):

I have the following groovy script coding:

if ( CategoryCode != "RETURN" && TransactionTypeCode == "SCCL_RMA_SO")
{header.setAttribute("TransactionTypeCode","SCCL_STOCKED");
}

if ( CategoryCode != "RETURN" && TransactionTypeCode == "SCCL_RMA")
{header.setAttribute("TransactionTypeCode","SCCL_STOCKED");
}


As you can see they are more or less the same with the exception of the TransactionTypeCode values.

How can i combine these lines into only one If Statement to check for both TransactionTypeCode values "SCCL_RMA_SO" and "SCCL_RMA"?

In SQL you would use an 'OR' or an 'IN' but how to i do the same in Groovy script?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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