Transform Invoice To Credit Memo

PHOTO EMBED

Fri Jun 17 2022 06:34:15 GMT+0000 (Coordinated Universal Time)

Saved by @mdfaizi #javascript

// 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
	});
content_copyCOPY