Bonus Type
You can use the bonus type record to define different types of bonuses within your organization’s compensation plans. For example, you might have holiday bonuses, sign-on bonuses, or merit bonuses. To use bonus records, the Compensation Tracking feature must be enabled in your account. For help working with this record in the user interface, see Recording Base Pay Compensation for an Employee.
The internal ID for this record is bonustype
.
See the SuiteScript Records Browser for all internal IDs associated with this record.
For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.
For information about scripting with this record in SuiteScript, see the following:
Supported Script Types
The bonus type record is scriptable in both client and server SuiteScript.
Supported Functions
The following SuiteScript functionality is supported:
-
Read
-
Create
-
Update
-
Copy
-
Delete
-
Search
Script Sample
The following sample shows how to create a bonus type record.
require(['N/record'], function (record) {
var bonusType = record.create({
type: record.Type.BONUS_TYPE
});
bonusType.setValue({
fieldId: 'name',
value: 'Annual Bonus'
});
bonusType.setValue({
fieldId: 'subsidiary',
value: 2
});
bonusType.save();
});