Modules

filter

 

Objects/Functions

module (N/query)

SuiteScript 2.0

Period.type

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Period.type for more information.

N/query Module
Period.type
Property Description: The type of the period. This property uses values from the query.PeriodType enum. If you create a period using query.createPeriod(options) and do not specify a value for the options.type parameter, the default value of this property is query.PeriodType.START.
Type: string (read-only)
Module: N/query Module
Parent Object: query.Period
Sibling Object Members: Period Object Members
Since: 2020.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Period.type

Example:

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

var theType = myPeriod.type;
//...
// Add additional code

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