transaction

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(t *Transaction, t2 *Transaction) compare.Order

Less defines an order on transactions.

Types

type Builder

type Builder struct {
	Src         *syntax.Transaction
	Date        time.Time
	Description string
	Postings    []*posting.Posting
	Targets     []*commodity.Commodity
}

Builder builds transactions.

func (Builder) Build

func (tb Builder) Build() *Transaction

Build builds a transactions.

type Transaction

type Transaction struct {
	Src         *syntax.Transaction
	Date        time.Time
	Description string
	Postings    []*posting.Posting
	Targets     []*commodity.Commodity
}

Transaction represents a transaction.

func Create

func Create(reg *registry.Registry, t *syntax.Transaction) ([]*Transaction, error)

Jump to

Keyboard shortcuts

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