report2

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Account *journal.Account

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

func (*Node) Children

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

func (*Node) Insert

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

func (*Node) Leaf

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

func (*Node) Segment

func (n *Node) Segment() string

type Renderer

type Renderer struct {
	ShowCommodities    bool
	SortAlphabetically bool
	Dates              []time.Time
	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

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

func NewReport

func NewReport(jctx journal.Context) *Report

func (*Report) ComputeWeights

func (r *Report) ComputeWeights()

func (*Report) Insert

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

func (*Report) Totals

func (r *Report) Totals() (amounts.Amounts, amounts.Amounts)

Jump to

Keyboard shortcuts

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