noticed that the *BundleInstallationScript* doesn’...
# suitescript
p
noticed that the BundleInstallationScript doesn’t do anything while installing a custom bundle
Copy code
/**
* @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?