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 Amounts, Values map[CommodityAccount]decimal.Decimal Account map[*accounts.Account]bool Valuation *commodities.Commodity NormalizedPrices prices.NormalizedPrices }
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 Builder ¶ added in v0.0.8
type Builder struct {
From, To *time.Time
Period *date.Period
Last int
Valuation *commodities.Commodity
Close, Diff bool
}
Builder builds a sequence of balances.
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.