BalancesContainer
Extends
BalancesContainer
Methods
addBalancesContainer()
addBalancesContainer(container): BalancesContainer;Adds an [[Account]] container to a [[Group]] container.
NOTE: Only for Group balance containers.
Parameters
| Parameter | Type |
|---|---|
container | BalancesContainer |
Returns
BalancesContainer
Inherited from
Bkper.BalancesContainer.addBalancesContainercreateDataTable()
createDataTable(): BalancesDataTableBuilder;Creates a BalancesDataTableBuilder to generate a two-dimensional array with all [[BalancesContainers]]
Returns
BalancesDataTableBuilder
Inherited from
Bkper.BalancesContainer.createDataTablegetAccount()
getAccount(): Account;The [[Account]] associated with this container
Returns
Account
Inherited from
Bkper.BalancesContainer.getAccountgetAccountBalancesContainers()
getAccountBalancesContainers(): BalancesContainer[];Gets all [[Account]] [[BalancesContainers]].
Returns
BalancesContainer[]
Inherited from
Bkper.BalancesContainer.getAccountBalancesContainersgetBalances()
getBalances(): Balance[];All [[Balances]] of the container
Returns
Balance[]
Inherited from
Bkper.BalancesContainer.getBalancesgetBalancesContainer()
getBalancesContainer(name): BalancesContainer;Gets a specific [[BalancesContainer]].
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
BalancesContainer
Inherited from
Bkper.BalancesContainer.getBalancesContainergetBalancesContainers()
getBalancesContainers(): BalancesContainer[];Gets all child [[BalancesContainers]].
NOTE: Only for Group balance containers. Accounts returns null.
Returns
BalancesContainer[]
Inherited from
Bkper.BalancesContainer.getBalancesContainersgetBalancesReport()
getBalancesReport(): BalancesReport;The parent BalancesReport of the container
Returns
BalancesReport
Inherited from
Bkper.BalancesContainer.getBalancesReportgetCumulativeBalance()
getCumulativeBalance(): Amount;The cumulative balance to the date.
Returns
Amount
Inherited from
Bkper.BalancesContainer.getCumulativeBalancegetCumulativeBalanceRaw()
getCumulativeBalanceRaw(): Amount;The cumulative raw balance to the date.
Returns
Amount
Inherited from
Bkper.BalancesContainer.getCumulativeBalanceRawgetCumulativeBalanceRawText()
getCumulativeBalanceRawText(): string;The cumulative raw balance formatted according to [[Book]] decimal format and fraction digits.
Returns
string
Inherited from
Bkper.BalancesContainer.getCumulativeBalanceRawTextgetCumulativeBalanceText()
getCumulativeBalanceText(): string;The cumulative balance formatted according to [[Book]] decimal format and fraction digits.
Returns
string
Inherited from
Bkper.BalancesContainer.getCumulativeBalanceTextgetCumulativeCredit()
getCumulativeCredit(): Amount;The cumulative credit to the date.
Returns
Amount
Inherited from
Bkper.BalancesContainer.getCumulativeCreditgetCumulativeCreditText()
getCumulativeCreditText(): string;The cumulative credit formatted according to [[Book]] decimal format and fraction digits.
Returns
string
Inherited from
Bkper.BalancesContainer.getCumulativeCreditTextgetCumulativeDebit()
getCumulativeDebit(): Amount;The cumulative debit to the date.
Returns
Amount
Inherited from
Bkper.BalancesContainer.getCumulativeDebitgetCumulativeDebitText()
getCumulativeDebitText(): string;The cumulative credit formatted according to [[Book]] decimal format and fraction digits.
Returns
string
Inherited from
Bkper.BalancesContainer.getCumulativeDebitTextgetDepth()
getDepth(): number;The depth in the parent chain up to the root.
Returns
number
Inherited from
Bkper.BalancesContainer.getDepthgetGroup()
getGroup(): Group;The [[Group]] associated with this container
Returns
Group
Inherited from
Bkper.BalancesContainer.getGroupgetName()
getName(): string;The [[Account]] or [[Group]] name
Returns
string
Inherited from
Bkper.BalancesContainer.getNamegetNormalizedName()
getNormalizedName(): string;The [[Account]] or [[Group]] name without spaces or special characters.
Returns
string
Inherited from
Bkper.BalancesContainer.getNormalizedNamegetParent()
getParent(): BalancesContainer;The parent BalanceContainer
Returns
BalancesContainer
Inherited from
Bkper.BalancesContainer.getParentgetPeriodBalance()
getPeriodBalance(): Amount;The balance on the date period.
Returns
Amount
Inherited from
Bkper.BalancesContainer.getPeriodBalancegetPeriodBalanceRaw()
getPeriodBalanceRaw(): Amount;The raw balance on the date period.
Returns
Amount
Inherited from
Bkper.BalancesContainer.getPeriodBalanceRawgetPeriodBalanceRawText()
getPeriodBalanceRawText(): string;The raw balance on the date period formatted according to [[Book]] decimal format and fraction digits
Returns
string
Inherited from
Bkper.BalancesContainer.getPeriodBalanceRawTextgetPeriodBalanceText()
getPeriodBalanceText(): string;The balance on the date period formatted according to [[Book]] decimal format and fraction digits
Returns
string
Inherited from
Bkper.BalancesContainer.getPeriodBalanceTextgetPeriodCredit()
getPeriodCredit(): Amount;The credit on the date period.
Returns
Amount
Inherited from
Bkper.BalancesContainer.getPeriodCreditgetPeriodCreditText()
getPeriodCreditText(): string;The credit on the date period formatted according to [[Book]] decimal format and fraction digits
Returns
string
Inherited from
Bkper.BalancesContainer.getPeriodCreditTextgetPeriodDebit()
getPeriodDebit(): Amount;The debit on the date period.
Returns
Amount
Inherited from
Bkper.BalancesContainer.getPeriodDebitgetPeriodDebitText()
getPeriodDebitText(): string;The debit on the date period formatted according to [[Book]] decimal format and fraction digits
Returns
string
Inherited from
Bkper.BalancesContainer.getPeriodDebitTextgetProperties()
getProperties(): object;Gets the custom properties stored in this Account or Group.
Returns
object
Inherited from
Bkper.BalancesContainer.getPropertiesgetProperty()
getProperty(...keys): string;Gets the property value for given keys. First property found will be retrieved
Parameters
| Parameter | Type |
|---|---|
…keys | string[] |
Returns
string
Inherited from
Bkper.BalancesContainer.getPropertygetPropertyKeys()
getPropertyKeys(): string[];Gets the custom properties keys stored in the associated [[Account]] or [[Group]].
Returns
string[]
Inherited from
Bkper.BalancesContainer.getPropertyKeyshasGroupBalances()
hasGroupBalances(): boolean;Tell if the balance container is from a parent group
Returns
boolean
Inherited from
Bkper.BalancesContainer.hasGroupBalancesisCredit()
isCredit(): boolean;Gets the credit nature of the BalancesContainer, based on [[Account]] or [[Group]].
For [[Account]], the credit nature will be the same as the one from the Account
For [[Group]], the credit nature will be the same, if all accounts containing on it has the same credit nature. False if mixed.
Returns
boolean
Inherited from
Bkper.BalancesContainer.isCreditisFromAccount()
isFromAccount(): boolean;Tell if this balance container if from an [[Account]]
Returns
boolean
Inherited from
Bkper.BalancesContainer.isFromAccountisFromGroup()
isFromGroup(): boolean;Tell if this balance container if from a [[Group]]
Returns
boolean
Inherited from
Bkper.BalancesContainer.isFromGroupisPermanent()
isPermanent(): boolean;Tell if this balance container is permament, based on the [[Account]] or [[Group]].
Permanent are the ones which final balance is relevant and keep its balances over time.
They are also called Real Accounts
Usually represents assets or liabilities, capable of being perceived by the senses or the mind, like bank accounts, money, debts and so on.
Returns
boolean
True if its a permanent Account
Inherited from
Bkper.BalancesContainer.isPermanentremoveBalancesContainer()
removeBalancesContainer(container): BalancesContainer;Removes an [[Account]] container from a [[Group]] container.
NOTE: Only for Group balance containers.
Parameters
| Parameter | Type |
|---|---|
container | BalancesContainer |
Returns
BalancesContainer
Inherited from
Bkper.BalancesContainer.removeBalancesContainer