AccountingBook
Type |
Object |
Description |
Represents the accounting book passed to a Custom GL Lines plug-in implementation when you save a transaction. Use the properties available to the book object to determine if the book is a primary or secondary book or get the internal NetSuite ID of the accounting book. If you use the Multi-Book Accounting feature, the AccountingBook object represents a different accounting book each time the plug-in implementation executes. For more information, see Custom GL Lines Plug-in Process Flow. |
Properties |
id
Property Description |
Returns the internal NetSuite ID for the accounting book to be passed to a Custom GL Lines plug-in implementation. You can use this ID, for example, to define plug-in implementation functionality based on the accounting book ID, to load the record for the book with record.load(options), or to search for the record using the N/query Module. The type for an accounting book record is
Important:
Limit the use of these APIs, where possible, to improve performance of the plug-in implementation. Also, searching for a record results in better performance than loading the record. You can view the list of internal NetSuite IDs for accounting books at Setup > Accounting > Accounting Books. You can also use helper functions in a utility file to avoid adding the internal NetSuite IDs into the plug-in implementation logic. |
Type |
number (read-only) |
Parent object |
isPrimary
Property Description |
Returns |
Type |
boolean (read-only) |
Parent object |