accounting

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllAccounts added in v0.5.7

func AllAccounts(db *gorm.DB) []string

func ClearCache added in v0.5.6

func ClearCache()

func CostBalance added in v0.2.5

func CostBalance(postings []posting.Posting) decimal.Decimal

func CostSum added in v0.4.2

func CostSum(postings []posting.Posting) decimal.Decimal

func CurrentBalance added in v0.2.8

func CurrentBalance(postings []posting.Posting) decimal.Decimal

func CurrentBalanceOn added in v0.4.8

func CurrentBalanceOn(db *gorm.DB, postings []posting.Posting, date time.Time) decimal.Decimal

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

func GroupByAccount added in v0.5.6

func GroupByAccount(posts []posting.Posting) map[string][]posting.Posting

func GroupByMonthlyBillingCycle added in v0.6.5

func GroupByMonthlyBillingCycle(postsings []posting.Posting, billDate int) map[string][]posting.Posting

func IsLeafAccount added in v0.5.6

func IsLeafAccount(db *gorm.DB, account string) bool

func PopulateBalance added in v0.5.9

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

func PostingWithBehaviours added in v0.5.6

func PostingWithBehaviours(postings []posting.Posting, behaviours []string) []posting.Posting

func SortAsc added in v0.5.9

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

func SortDesc added in v0.5.9

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

func SortTransactionAsc added in v0.6.5

func SortTransactionAsc(transactions []transaction.Transaction) []transaction.Transaction

Types

type Balance

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

func Register

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

type Point added in v0.2.9

type Point struct {
	Date  time.Time       `json:"date"`
	Value decimal.Decimal `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