posting

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(p, p2 *Posting) compare.Order

Types

type Builder

type Builder struct {
	Src             *syntax.Booking
	Quantity, Value decimal.Decimal
	Credit, Debit   *account.Account
	Commodity       *commodity.Commodity
}

func (Builder) Build

func (pb Builder) Build() []*Posting

type Builders

type Builders []Builder

func (Builders) Build

func (pbs Builders) Build() []*Posting

type Posting

type Posting struct {
	Src             *syntax.Booking
	Quantity, Value decimal.Decimal
	Account, Other  *account.Account
	Commodity       *commodity.Commodity
}

Posting represents a posting.

func Create

func Create(reg *registry.Registry, bs []syntax.Booking) ([]*Posting, error)

Jump to

Keyboard shortcuts

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