Skip to main content

GLItemUnit Function

GLItemUnit Function

Description

The GLItemUnit function returns the item's unit of measure based on a set of parameters. Items have a default unit of measure assigned to them, but in transactions, they can utilize smaller or larger units which could result in the returned unit from this function differing from the unit seen on the Item List.

Function Arguments

Argument NameInput InformationRequired
SubsidiarySubsidiary NameNo
Fiscal YearFiscal Year in the format specified in NetSuiteYes
PeriodPeriod Number (ex: 1 for January)Yes
Period RangeValid values include ITD, YTD, RTD, QTD, PTD, TTDYes
Account NumberAccount NumberYes
BookBook Number. Default is 1 if omitted.No
ItemItem IDNo
ClassClassification NameNo
DepartmentDepartment NameNo
LocationLocation NameNo
EntityEntity NameNo
Transaction TypeTransaction TypeNo
PostedSpecifies whether to include only Posted or Non-Posted transactions. P is default for Posted. NP is Non-Posted.No
CurrencyIf left blank, will default to the currency defined by the Subsidiary.No
Custom Segment ParametersCustom segment filter values. Multiple custom segments can be specified.No

Example

Let's say you want to analyze the GLItemUnit for a series of items in Inventory now. First, set up a report with the needed parameters for the function which will include Subsidiary, Fiscal Year, Period, Period Range, and Account in Review (1210 - Inventory Raw Component Stock). Below these parameter cells, you will want to incldue a spot for Item and Item Name (utilize the function GetListInfo to easily return the Item Name), Quantity (if desired) and Item Unit.

Example Inventory Unit Report

  1. Start by selecting Finsyte Functions > GLItemUnit
  2. Fill in your arguments, use the F4 key for hardcoded values as needed.
    1. GLItemUnit Arguments
  3. Select OK to see the first unit value returned. Drag the function down to apply to the other items.
    1. GLItemUnit Evaluated

Note: As mentioned in the description, all Items also have a default unit outlined in the Items List. Utilize the GetListInfo function to return the unit name if you want to compare units of an item at the argument's level vs the list level.