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

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/query Module Script Samples.

            // 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 

          

Related Topics

General Notices