How to write the groovy script for the Line type selection in sales order (Order management)
Summary:
Requirement - Order type = CH Return SO and Line type = Return for credit and return the item
Content (required):
In the below script, when user select Return for credit and return the item line type then also it will showing the Warning/Error.
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
import oracle.apps.scm.doo.common.extensions.ValidationException;
import oracle.apps.scm.doo.common.extensions.Message;
String messageText = "Please select Return Type as Return for credit and return the item ";
String orderTypeCode = header.getAttribute("TransactionTypeCode");
Tagged:
0