CustomLines
Type |
Object |
Description |
Contains the business logic to modify the general impact for a transaction with the Custom GL Lines Plug-in. Use the objects passed to this function by NetSuite to implement the following business logic in a Custom GL Lines plug-in implementation.
Contains an array of all custom lines with GL impact in a transaction as CustomLine objects. Use this object to add and modify custom lines with GL impact on a transaction. Create a new CustomLine object with addNewLine(). For more information, see Custom GL Lines Plug-in Process Flow. |
Properties |
count |
Methods |
count
Property Description |
Returns the number of custom lines with GL impact for a specific accounting book in a transaction. These lines are added with addNewLine(). Use this property in conjunction with getLine(options) to get individual custom lines after you add them in the plug-in implementation. |
Type |
number (read-only) |
Parent object |
addNewLine()
Method Description |
Adds a CustomLine object to the parent CustomLines object in a Custom GL Lines plug-in implementation and returns the new object. Use this method to add a custom line with GL impact to a transaction. After you create the custom line, use the methods available to the CustomLine object to set the properties of the custom line, including the general ledger account ID and the amount of the custom line.
Note:
If you use the Multi-Book Accounting feature and want this line to be copied to the secondary accounting books, use the isBookSpecific property. |
Returns |
|
Parent object |
getLine(options)
Method Description |
Returns a CustomLine object that represents a custom line with GL impact. CustomLine objects are stored in the CustomLines object starting at index |
Returns |
CustomLine |
Parent object |