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 |
Type |
string (read-only) |
Module |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2020.1 |
Syntax
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