UNPKG

nsmockup

Version:

Test your Suitescripts before deploying to NetSuite

18 lines (14 loc) 303 B
'use strict'; exports.$$hook = true; exports.nlapiGetSubsidiary = (ctx) => { /** * Return the internal ID for the current user's subsidiary. * * @return {int} * * @since 2008.1 */ return () => { return ctx.nlapiGetContext().getSubsidiary(); }; };