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[CommodityAccount]amount.Amount
Account map[*accounts.Account]bool
Prices prices.Prices
Valuation *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.
type CommodityAccount ¶ added in v0.0.7
type CommodityAccount struct {
Account *accounts.Account
Commodity *commodities.Commodity
}
CommodityAccount represents a position.
func (CommodityAccount) Less ¶ added in v0.0.7
func (p CommodityAccount) Less(p1 CommodityAccount) bool
Less establishes a partial ordering of commodity accounts.
Click to show internal directories.
Click to hide internal directories.