balance

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 12 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 = multimap.Node[Value]

type Renderer

type Renderer struct {
	Valuation          *model.Commodity
	CommodityDetails   regex.Regexes
	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

type Report struct {
	Registry *model.Registry
	AL, EIE  *multimap.Node[Value]
	// contains filtered or unexported fields
}

func NewReport

func NewReport(reg *model.Registry, part date.Partition) *Report

func (*Report) Insert

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

func (*Report) SetAccounts

func (r *Report) SetAccounts()

func (*Report) SortAlpha

func (r *Report) SortAlpha()

func (*Report) SortWeighted

func (r *Report) SortWeighted()

func (*Report) Totals

type Value

type Value struct {
	Account *model.Account
	Amounts amounts.Amounts
	Weight  decimal.Decimal
}

Jump to

Keyboard shortcuts

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