AccountGroup
public class AccountGroup : AccountItem
A group of accounts.
If e.g. Assets:Cash:CAD and Assets:Cash:EUR are Accounts, Assets and Assets:Cash would be AccountGroups.
In this case Assets would be a baseGroup
-
Last part of the name, for Assets:Cash:CAD this would be CAD
Declaration
Swift
public let nameItem: String -
Indicates if this a a base group, meaning it directly is one of the 5
AccountTypesDeclaration
Swift
public let baseGroup: Bool -
Type, see
AccountTypeDeclaration
Swift
public let accountType: AccountType -
Creates an AccountGroup
Declaration
Swift
public init(nameItem: String, accountType: AccountType, baseGroup: Bool = false)Parameters
nameItemname for the group, without any :
accountTypetype
baseGroupif this group is one of the five base
AccountTypes -
Get all
AccountItems which are children of this groupAccountItems are the
Accounts which are direct children under this group and the subAccountGroups under this group.Declaration
Swift
public func children() -> [AccountItem]Return Value
Array sorted by name item of children
View on GitHub
Install in Dash
AccountGroup Class Reference