Default Currency Conversion Type when SO currency is other than USD using OM Extension
Summary:
HI
Functional Currency is USD. When sales order is enter using currency other than USD then 'Corporate Currency'. Pre-transformation rule is not available for currency conversion type defaultation. So I am trying with groovy script in order management extension.
def currency = header.getAttribute("TransactionalCurrencyCode");
if (TransactionalCurrencyCode!= 'USD') {
header.setAttribute("CurrencyConversionTypeCode", "Corporate");
}
The validation of the script is successful but it given an error when we create the sales order
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
23C
Code Snippet (add any code snippets that support your topic, if applicable):