Default the Order Type based on the Sales Channel
We need to default the Order Type based on the Sales Channel when creating Return Orders using Order Management Extensions.
I have the following query to default based on the Transaction Type. Can someone help me include the Sales Channel as well?
import oracle.apps.scm.doo.common.extensions.ValidationException;
import oracle.apps.scm.doo.common.extensions.Message;
def lines = header.getAttribute("Lines");
while ( lines.hasNext() )
{
def line1 = lines.next();
String CategoryCode = line1.getAttribute("TransactionCategoryCode");
if( CategoryCode == "RETURN")
{
header.setAttribute("TransactionTypeCode","Return - Rep Sales");
return;
}
}
return;
0