AccountTypeID

Gets the account type ID for the current account member or for a specified account. This function can be used in these types of rules:

Syntax

HS.Account.AccountTypeID("Account")
HS.Account.AccountTypeID(" ")

where Account is the name of a valid Account member

You can use a blank string (" ") to apply this function to the current member only if you are using the function in the Sub Consolidate routine. Otherwise, you must specify an account when using this function.

Return Value

The ID for the specified account. Table 39 lists valid account types with corresponding IDs.

Table 39. Account Type IDs

Account Type

ID

REVENUE (INCOME in previous releases)

0

EXPENSE

1

ASSET

2

LIABILITY

3

BALANCE

4

FLOW

5

CURRENCYRATE

7

GROUPLABEL

10

BALANCERECURRING

11

DYNAMIC

12

Example

If HS.Account.AccountTypeID("Investments") = 2 Then
...
End If