Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balance ¶
type Balance struct { Date time.Time Positions map[model.CommodityAccount]amount.Amount Account map[*accounts.Account]bool Prices prices.Prices Valuations []*commodities.Commodity NormalizedPrices []prices.NormalizedPrices CloseIncomeAndExpenses bool }
Balance represents a balance for accounts at the given date.
func Diffs ¶
Diffs creates the difference balances for the given slice of balances. The returned slice is one element smaller than the input slice. The balances are mutated.
func (*Balance) GetPositions ¶
GetPositions returns the positions for the given valuation index. An index of nil returns the raw counts.
Click to show internal directories.
Click to hide internal directories.