Modules

filter

 

Objects/Functions

module (N/query)

SuiteScript 2.0

query.PeriodType

query.PeriodType.{|END,START|}

N/query Module
query.PeriodType
Enum Description: Holds the string values for period types for a period. This enum is used to pass the type argument to query.createPeriod(options). JavaScript does not include an enumeration type. The SuiteScript 2.0 documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. Within this object, each key points to a read-only string value.
Module: N/query Module
Sibling Module Members: N/query Module Members
Since: 2020.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=query.PeriodType

Example:

// Code Example 1
// Add additional code
//...
var myPeriod = query.createPeriod({
code: query.PeriodCode.LAST_PERIOD,
adjustment: query.PeriodAdjustment.ALL,
type: query.PeriodType.END
});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_158289949288.html