Documentation
¶
Overview ¶
Package report implements all ledger-cli style reports against an in-memory model.Project. Local-mode `bw ledger <report>` calls these directly; cloud mode delegates to gl-svc, which produces the same outputs server-side.
Index ¶
- func Accounts(w io.Writer, p *model.Project, f Filter) error
- func Balance(w io.Writer, p *model.Project, f Filter) error
- func CSVPrint(w io.Writer, p *model.Project, f Filter) error
- func Cleared(w io.Writer, p *model.Project) error
- func Commodities(w io.Writer, p *model.Project) error
- func Equity(w io.Writer, p *model.Project, f Filter) error
- func Payees(w io.Writer, p *model.Project) error
- func Prices(w io.Writer, p *model.Project) error
- func Print(w io.Writer, p *model.Project, f Filter) error
- func Register(w io.Writer, p *model.Project, f Filter) error
- func Stats(w io.Writer, p *model.Project) error
- type Filter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Balance ¶
Balance prints account balances tree-style. Native commodities are summed per-commodity; if a posting has @ pricing, it also contributes to the base currency total via the unit-price.
func Commodities ¶
Commodities prints distinct commodities. Declared commodities (with their note / format / flags) are listed first, then any observed-but-undeclared symbols. The output is one symbol per line for declared rows that have no metadata; declared rows with metadata get an inline `; ...` annotation.
func Equity ¶
Equity prints an equity-style snapshot — a single synthetic entry that would zero out every account if posted.
func Prices ¶
Prices prints all P-directives. Timestamped prices render with their timezone offset; date-only prices render with date precision.