StandardLine
Type |
Object |
Description |
Contains all values for a single standard line on the GL impact on a transaction. Use the methods and properties available to the StandardLine object to get the values for the standard line and define plug-in implementation functionality based on the values. The StandardLines object has a StandardLine object for each standard GL impact line. |
Properties |
|
Methods |
|
Parent Object |
accountId
Property Description |
Returns the internal NetSuite ID of the entity for a StandardLine object. This account ID represents the NetSuite general ledger account to which a credit or debit is applied on the GL impact for a transaction. Use this ID to define plug-in implementation functionality based on the credited or debited account. See also accountId. You can view the internal NetSuite ID for all accounts on the Chart of Accounts page at Setup > Accounting > Chart of Accounts. You can use helper functions in a utility file to customize the internal NetSuite account IDs in the plug-in implementation logic. |
Type |
number (read-only) |
Parent object |
amount
Property Description |
Returns the amount for a StandardLine. Use this property to define plug-in implementation functionality based on the amount for a GL impact line. If the line is a credit, than it will have a negative sign. |
Type |
string |
Parent object |
classId
Property Description |
Returns the internal NetSuite ID for the class on a StandardLine object. Use this property to define plug-in implementation functionality based on the class for a GL impact line. See also classId. Classes are categories that you can create to track records such as financials, transactions, and employees. You can view all classes defined in Setup > Company > Classes. You can 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 |
creditAmount
Property Description |
Returns the credit amount for a StandardLine object. Use this property to define plug-in implementation functionality based on the credited amount for a GL impact line. See also creditAmount. |
Type |
string (read-only) |
Parent object |
debitAmount
Property Description |
Returns the debit amount for a StandardLine object. Use this property to define plug-in implementation functionality based on the credited amount for a GL impact line. See also debitAmount. |
Type |
string (read-only) |
Parent object |
departmentId
Property Description |
Returns the internal NetSuite ID for the department on a StandardLine object. Use this property to define plug-in implementation functionality based on the class for a GL impact line. See also departmentId. Departments are categories that you can create to track records such as financials, transactions, and employees. You can view all classes defined in NetSuite at Setup > Company > Departments. You can 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 |
entityId
Property Description |
Returns the internal NetSuite ID for the entity on a StandardLine object. The entity can be any customer, employee, partner, or vendor, depending on the type of transaction. You can use this ID, for example, to define plug-in implementation functionality based on the entity ID, to load the record for the entity with
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. To implement functionality based on the entity ID, you can use helper functions to avoid adding the internal NetSuite ID into the plug-in implementation logic. |
Type |
number (read-only) |
Parent object |
id
Property Description |
Returns the internal NetSuite database ID for a standard GL impact line. The summary line for the GL impact on a transaction occurs for most transaction types with an ID of 0. Some transactions, like journal entries, do not have a summary line. You can use the summary information to define plug-in implementation functionality based on the values in the summary line.
Note:
The summary line for the GL impact on a transaction does not include tax information. |
Type |
number (read-only) |
Parent object |
isPosting
Property Description |
Returns NetSuite transactions can be posting, non-posting, or posting with approval. For example, journal entries do not post without approval. For more information, see General Ledger Impact of Transactions. |
Type |
boolean (read-only) |
Parent object |
isTaxable
Property Description |
Returns |
Type |
boolean (read-only) |
Parent object |
locationId
Property Description |
Returns the internal NetSuite ID for the location on a StandardLine object. Use this property to define plug-in implementation functionality based on the location for a GL impact line. See also locationId. Use locations to track information about employees and transactions for multiple offices or warehouses. You can view all locations defined in NetSuite at Setup > Company > Locations. You can 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 |
memo
Property Description |
Returns the Memo field on a StandardLine object. The Memo field is populated from fields on the transaction, for example, the Description field for a line item on an Invoice transaction. See also memo. |
Type |
string (read-only) |
Parent object |
subsidiaryId
Property Description |
Returns the internal NetSuite ID of the subsidiary for the entity associated with a standard GL impact line. You can view all subsidiaries and the associated internal IDs in NetSuite at Setup > Company > Subsidiaries. You can use this ID, for example, to define plug-in implementation functionality based on the subsidiary ID, to load the record for the subsidiary with record.load(options), or to search for the record using the N/query Module.
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 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 |
taxAmount
Property Description |
Returns a string that represents the amount of tax charged on a standard GL line. This property only returns a value other than 0 if the standard line is a credit to a tax account. For example, if a standard line on a taxable transaction contains a credit value of 10.00 for an account of type Other Current Liability, this property returns -10. Use this property with taxItemId, taxableAmount, and taxType to get the tax information for a standard GL impact line. |
Type |
string (read-only) |
Parent object |
taxableAmount
Property Description |
Returns a string that represents the amount of a standard GL line that was subject to tax. Returns 0 if the line was not subject to tax. Use this property with taxItemId, taxAmount, and taxType to get the tax information for a standard GL impact line. You can use helper functions in a utility file to avoid adding the internal NetSuite IDs into the plug-in implementation logic. |
Type |
string (read-only) |
Parent object |
taxItemId
Property Description |
Returns the internal NetSuite ID of the tax code for a standard GL line. Returns You can use this ID to define plug-in implementation functionality based on the tax code. For example, a tax code of -7 indicates the line was not subject to tax. You can view all tax codes in NetSuite at Setup > Accounting > Tax Codes. You can use helper functions in a utility file to avoid adding the internal NetSuite IDs into the plug-in implementation logic. Use this property with taxableAmount, taxAmount, and taxType to get the tax information for a standard GL impact line. |
Type |
number (read-only) |
Parent object |
taxType
Property Description |
Returns the tax type for a standard GL line that was subject to tax. Returns null if the standard line was not subject to tax. You can use this ID to define plug-in implementation functionality based on the tax type. You can view all tax types in NetSuite at Setup > Accounting > Tax Types. Use this property with taxableAmount, taxAmount, and taxItemId to get the tax information for a standard GL impact line. |
Type |
string (read-only) |
Parent object |
getSegmentValueId(options)
Method Description |
Returns the internal NetSuite ID for the custom segment value set on the line on a StandardLine object. Use this method to define plug-in implementation functionality based on the value for a GL impact line. See also getSegmentValueId(options) and setSegmentValueId(options). |
Returns |
number |
Parent object |
Parameters
Parameter |
Type |
Required/Optional |
Description |
options.segmentId |
String |
Required |
String value of the custom segment ID. |