AccountType
Gets the account type for the current Account member or for a specified account. This function can be used in these types of rules:
-
Calculation
-
Translation
-
Consolidation
-
Allocation
Syntax
HS.Account.AccountType("Account")
HS.Account.AccountType("")
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, specify an account when using this function.
Return Value
The account type for the specified account.
Note:
Account types use all capital letters.
Valid account types are:
-
ASSET
-
LIABILITY
-
REVENUE
-
EXPENSE
-
DYNAMIC
-
FLOW
-
BALANCE
-
BALANCERECURRING
-
CURRENCYRATE
-
GROUPLABEL
Example
In this example, if the account type for the Sales account is REVENUE, then statements between the If...Then and End If statements are executed.
If HS.Account.AccountType("Sales") = "REVENUE" Then
...
End If