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:

  • Calculation

  • Translation

  • Consolidation

  • Allocation

  • Dynamic Calculation

  • Transactions

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 subroutine. Otherwise, you must specify an account when using this function.

Return Value

The ID for the specified account. Table 11-3 lists valid account types with corresponding IDs.

Table 11-3 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