Philip Denys
12/23/2020, 10:11 AM/**
* @NApiVersion 2.0
* @NScriptType BundleInstallationScript */
define(['N/runtime'], function(runtime) { function checkPrerequisites() {
if (!runtime.isFeatureInEffect({ feature: 'TIMEOFFMANAGEMENT'
}))
throw 'The TIMEOFFMANAGEMENT feature must be enabled. ' +
'Please enable the feature and try again.';
}
return {
beforeInstall: function beforeInstall(params) { checkPrerequisites();
},
beforeUpdate: function beforeUpdate(params) {
checkPrerequisites(); }
}; });
How to deal with this?