// apply open credit memo(s) to invoice [assumption under the same AR account] var objCustPaymtRec = record.transform({ fromType : record.Type.INVOICE, fromId : intInvoiceId, toType : record.Type.CUSTOMER_PAYMENT, isDynamic : true });
// apply open credit memo(s) to invoice [assumption under the same AR account] var objCustPaymtRec = record.transform({ fromType : record.Type.INVOICE, fromId : intInvoiceId, toType : record.Type.CUSTOMER_PAYMENT, isDynamic : true });