report

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node added in v0.1.1

type Node struct {
	Account *journal.Account

	Amounts journal.Amounts
	// contains filtered or unexported fields
}

func (*Node) Children added in v0.1.1

func (n *Node) Children() []*Node

func (*Node) Insert added in v0.1.1

func (n *Node) Insert(k journal.Key, v decimal.Decimal)

func (*Node) Leaf added in v0.1.1

func (n *Node) Leaf(as []*journal.Account) *Node

func (*Node) Segment added in v0.1.1

func (n *Node) Segment() string

type Renderer

type Renderer struct {
	ShowCommodities    bool
	SortAlphabetically bool
	Diff               bool
	// contains filtered or unexported fields
}

Renderer renders a report.

func (*Renderer) Render

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

Render renders a report.

type Report added in v0.1.1

type Report struct {
	Context journal.Context
	AL, EIE *Node
	// contains filtered or unexported fields
}

func NewReport added in v0.1.1

func NewReport(jctx journal.Context, ds []time.Time) *Report

func (*Report) ComputeWeights added in v0.1.1

func (r *Report) ComputeWeights()

func (*Report) Insert added in v0.1.1

func (r *Report) Insert(k journal.Key, v decimal.Decimal)

func (*Report) Totals added in v0.1.1

Jump to

Keyboard shortcuts

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