How to write the groovy script for the Line type selection in sales order (Order management)
Requirement - Order type = CH Return SO and Line type = Return for credit and return the item
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):
String messageText = "Please select Return Type as Return for credit and return the item ";
String orderTypeCode = header.getAttribute("TransactionTypeCode");