report

package
v0.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	Context   journal.Context
	Dates     map[date.Period]struct{}
	Mapping   journal.Mapping
	Positions indexByAccount
}

Balance is a balance report for a range of dates.

func (Balance) Subtree

func (rep Balance) Subtree() map[*journal.Account]struct{}

Subtree returns the accounts of the minimal dense subtree which covers the accounts in this report.

type BalanceBuilder

type BalanceBuilder struct {
	Context   journal.Context
	Mapping   journal.Mapping
	Valuation bool
	Diff      bool

	Result *Balance
}

BalanceBuilder builds a report.

func (*BalanceBuilder) Sink

func (rb *BalanceBuilder) Sink(ctx context.Context, inCh <-chan *ast.Period) error

Sink consumes the stream and produces a report.

type Renderer

type Renderer struct {
	Context            journal.Context
	ShowCommodities    bool
	SortAlphabetically bool
	// contains filtered or unexported fields
}

Renderer renders a report.

func (*Renderer) Render

func (rn *Renderer) Render(r *Balance) *table.Table

Render renders a report.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL