accounting

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CostBalance added in v0.2.5

func CostBalance(postings []posting.Posting) float64

func CurrentBalance added in v0.2.8

func CurrentBalance(postings []posting.Posting) float64

func FIFO added in v0.2.5

func FIFO(postings []posting.Posting) []posting.Posting

func FilterByGlob added in v0.2.5

func FilterByGlob(postings []posting.Posting, accounts []string) []posting.Posting

Types

type Balance

type Balance struct {
	Date      time.Time
	Commodity string
	Quantity  float64
}

func Register

func Register(postings []posting.Posting) []Balance

type Point added in v0.2.9

type Point struct {
	Date  time.Time `json:"date"`
	Value float64   `json:"value"`
}

func RunningBalance added in v0.2.9

func RunningBalance(db *gorm.DB, postings []posting.Posting) []Point

Jump to

Keyboard shortcuts

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