Class: BalanceReport

BalanceReport

A BalanceReport stores the balances based on an query.

new BalanceReport(balanceReportPlain, decimalSeparator, fractionDigits)

Parameters:
Name Type Description
balanceReportPlain Array balances wrapped array
decimalSeparator DecimalSeparator decimal separator of book
fractionDigits FractionDigits Fraction digits of book

Methods

createDataTable() → {BalancesDataTableBuilder}

Returns:
Type
BalancesDataTableBuilder

getAccountBalanceReports() → {Array.<Report.AccountBalanceReport>}

Returns:
all account balances of this query
Type
Array.<Report.AccountBalanceReport>

getGroupBalanceReport(groupName) → {Report.GroupBalanceReport}

Parameters:
Name Type Description
groupName string The name of the group filtered on query
Returns:
an specific Report.GroupBalanceReport of this query
Type
Report.GroupBalanceReport

getGroupBalanceReports() → {Array.<Report.GroupBalanceReport>}

Returns:
all group balances of this query
Type
Array.<Report.GroupBalanceReport>

getPeriodicity() → {string}

Returns:
the balance periodicity.
Type
string

getTagBalanceReports() → {Array.<Report.TagBalanceReport>}

Returns:
all hashtags balances of this query
Type
Array.<Report.TagBalanceReport>

hasOnlyOneGroupBalance() → {boolean}

Returns:
Check if report has only one group balance.
Type
boolean