When I create a new Customer Refund with a selected Customer, I now get an error of INVALID_KEY_OR_REF Invalid paymentmethod reference key VISA. This code use to work before the latest 2016 R1 upgrade.
// create the Customer Refund record
var customerRefund = nlapiCreateRecord("customerrefund", {
entity: creditMemo.getFieldValue("entity") // preload with customer credits
});
How can I create a new Customer Refund based on the credit memos for a customer without getting this error about a payment method? I don't even see that a Credit Memo has a paymentmethod field.
Additional Info
I tried initializing the paymentmethod in the nlapiCreateRecord call, now I'm getting this error:
INVALID_RCRD_INITIALIZE You have entered an invalid default value for this
record initialize operation.