I'm trying to mark a Return Authorization as Approved.
var returnAuth = nlapiTransformRecord('invoice',invoice_id,'returnauthorization',true);
returnAuth.setFieldValue('customform','84');
returnAuth.setFieldValue('approvereturn','T');
nlapiSubmitRecord(returnAuth);
I've tried using the approvereturn,'T' to see if it approves the RA. BUt nothing happens.
Is there something I'm missing as all I want to do is transform the invoice into an RA and have it approved so I can generate a cash refund off it.
Or am I missing something completely when trying to do this?