hi, how can i transform a credit memo to a refund using code? according to the documentation the only valid transformation is from CreditMemo -> Cash Refund, but when i do it on the UI, it transforms from CreditMemo -> CustomerRefund. And when trying to do it from the code, both transformations Fail:
            stRefund = record.transform({
                fromType: 'creditmemo',
                fromId: data.stCreditMemoId,
                toType: 'customerrefund',
            });
"error.SuiteScriptError","name":"INVALID_RCRD_TRANSFRM","
            stRefund = record.transform({
                fromType: 'creditmemo',
                fromId: data.stCreditMemoId,
                toType: 'cashrefund,
            });
"error.SuiteScriptError","name":"INVALID_RCRD_TRANSFRM","