Class: Group

Group

This class defines a Group of Accounts.

Accounts can be grouped by different meaning, like Expenses, Revenue, Assets, Liabilities and so on.
Its useful to keep Accounts organized and for high level analysis.

new Group()

Methods

getAccounts() → {Array.<Account>}

Returns:
All Accounts this Group is has.
Type
Array.<Account>

getId() → {number}

Returns:
The id of this Group
Type
number

getName() → {string}

Returns:
The name of this Group
Type
string

hasAccounts() → {boolean}

Returns:
Check if this group has accounts
Type
boolean