Does anyone know why a GL custom plugin isn't being triggered on netsuite using suitescript 1.0? Even though I followed all the steps in netsuite documentation, the script isn't being triggered.
function customizeGlImpact(transactionRecord, standardLines, customLines, book) {
try {
var tranType = transactionRecord.getRecordType();
nlapiLogExecution('DEBUG', 'Transaction Type', tranType);
var tranTypeId = transactionRecord.getFieldValue('ntype');
nlapiLogExecution('DEBUG', 'Transaction Type Id', tranTypeId);
}
catch (ex) {
nlapiLogExecution('DEBUG', 'Error', JSON.stringify(ex));
}
}