reports

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PayeeOpeningBalance = "Opening Balance"

PayeeOpeningBalance name generated by equity. IMPORTANT: don't change this literal

Functions

func CommodityColor

func CommodityColor(
	db api.Datastorer, comm *dblentry.Commodity, text string) (out interface{})

func Indent

func Indent(keys []string) []string

func NewReporter

func NewReporter(args []string) (reporter api.Reporter, err error)

NewReporter create a new reporter.

Types

type RCformat

type RCformat struct {
	// contains filtered or unexported fields
}

RCformat for {row, column} tabular formatting.

func NewRCformat

func NewRCformat() *RCformat

NewRCformat creates a new table of rows and colums.

func (*RCformat) Clone

func (rcf *RCformat) Clone() *RCformat

func (*RCformat) FitAccountname

func (rcf *RCformat) FitAccountname(index, maxwidth int) int

FitAccountname for formatting

func (*RCformat) FitPayee

func (rcf *RCformat) FitPayee(index, maxwidth int) int

FitPayee for formatting

func (*RCformat) Fmsg

func (rcf *RCformat) Fmsg(fmsg string) string

Fmsg format pattern for converting a row into report line.

func (*RCformat) String

func (rcf *RCformat) String() string

type ReportBalance

type ReportBalance struct {
	// contains filtered or unexported fields
}

ReportBalance for balance reporting.

func NewReportBalance

func NewReportBalance(args []string) (*ReportBalance, error)

NewReportBalance creates an instance for balance reporting

func (*ReportBalance) BubblePosting

func (report *ReportBalance) BubblePosting(
	db api.Datastorer, trans api.Transactor,
	p api.Poster, account api.Accounter) error

func (*ReportBalance) Clone

func (report *ReportBalance) Clone() api.Reporter

func (*ReportBalance) Firstpass

func (report *ReportBalance) Firstpass(
	db api.Datastorer, trans api.Transactor, p api.Poster) error

func (*ReportBalance) Posting

func (report *ReportBalance) Posting(
	db api.Datastorer, trans api.Transactor, p api.Poster) error

func (*ReportBalance) Render

func (report *ReportBalance) Render(args []string, db api.Datastorer)

func (*ReportBalance) Startjournal

func (report *ReportBalance) Startjournal(fname string, included bool)

func (*ReportBalance) Transaction

func (report *ReportBalance) Transaction(
	db api.Datastorer, trans api.Transactor) error

type ReportEquity

type ReportEquity struct {
	// contains filtered or unexported fields
}

ReportEquity for equity reporting.

func NewReportEquity

func NewReportEquity(args []string) (*ReportEquity, error)

NewReportEquity create a new instance for equity reporting.

func (*ReportEquity) BubblePosting

func (report *ReportEquity) BubblePosting(
	db api.Datastorer, trans api.Transactor,
	p api.Poster, account api.Accounter) error

func (*ReportEquity) Clone

func (report *ReportEquity) Clone() api.Reporter

func (*ReportEquity) Firstpass

func (report *ReportEquity) Firstpass(
	db api.Datastorer, trans api.Transactor, p api.Poster) error

func (*ReportEquity) Posting

func (report *ReportEquity) Posting(
	db api.Datastorer, trans api.Transactor, p api.Poster) error

func (*ReportEquity) Render

func (report *ReportEquity) Render(args []string, db api.Datastorer)

func (*ReportEquity) Startjournal

func (report *ReportEquity) Startjournal(fname string, included bool)

func (*ReportEquity) Transaction

func (report *ReportEquity) Transaction(
	db api.Datastorer, trans api.Transactor) error

type ReportList

type ReportList struct {
	// contains filtered or unexported fields
}

ReportList for balance reporting.

func NewReportList

func NewReportList(args []string) *ReportList

NewReportList creates an instance for balance reporting

func (*ReportList) BubblePosting

func (report *ReportList) BubblePosting(
	_ api.Datastorer, _ api.Transactor, _ api.Poster, _ api.Accounter) error

func (*ReportList) Clone

func (report *ReportList) Clone() api.Reporter

func (*ReportList) Firstpass

func (report *ReportList) Firstpass(
	db api.Datastorer, trans api.Transactor, p api.Poster) error

func (*ReportList) Posting

func (report *ReportList) Posting(
	_ api.Datastorer, _ api.Transactor, _ api.Poster) error

func (*ReportList) Render

func (report *ReportList) Render(args []string, ndb api.Datastorer)

func (*ReportList) Startjournal

func (report *ReportList) Startjournal(fname string, included bool)

func (*ReportList) Transaction

func (report *ReportList) Transaction(
	_ api.Datastorer, _ api.Transactor) error

type ReportPassbook

type ReportPassbook struct {
	// contains filtered or unexported fields
}

func NewReportPassbook

func NewReportPassbook(args []string) (*ReportPassbook, error)

func (*ReportPassbook) BubblePosting

func (report *ReportPassbook) BubblePosting(
	db api.Datastorer, trans api.Transactor,
	p api.Poster, account api.Accounter) error

func (*ReportPassbook) Clone

func (report *ReportPassbook) Clone() api.Reporter

func (*ReportPassbook) Firstpass

func (report *ReportPassbook) Firstpass(
	db api.Datastorer, trans api.Transactor, p api.Poster) error

func (*ReportPassbook) Posting

func (report *ReportPassbook) Posting(
	db api.Datastorer, trans api.Transactor, p api.Poster) error

func (*ReportPassbook) Render

func (report *ReportPassbook) Render(args []string, db api.Datastorer)

func (*ReportPassbook) Startjournal

func (report *ReportPassbook) Startjournal(fname string, included bool)

func (*ReportPassbook) Transaction

func (report *ReportPassbook) Transaction(
	db api.Datastorer, trans api.Transactor) error

type ReportPrint

type ReportPrint struct {
	// contains filtered or unexported fields
}

ReportPrint for balance reporting.

func NewReportPrint

func NewReportPrint(args []string) *ReportPrint

NewReportList creates an instance for balance reporting

func (*ReportPrint) BubblePosting

func (report *ReportPrint) BubblePosting(
	_ api.Datastorer, _ api.Transactor, _ api.Poster, _ api.Accounter) error

func (*ReportPrint) Clone

func (report *ReportPrint) Clone() api.Reporter

func (*ReportPrint) Firstpass

func (report *ReportPrint) Firstpass(
	db api.Datastorer, trans api.Transactor, p api.Poster) error

func (*ReportPrint) Posting

func (report *ReportPrint) Posting(
	_ api.Datastorer, _ api.Transactor, _ api.Poster) error

func (*ReportPrint) Render

func (report *ReportPrint) Render(args []string, ndb api.Datastorer)

func (*ReportPrint) Startjournal

func (report *ReportPrint) Startjournal(fname string, included bool)

func (*ReportPrint) Transaction

func (report *ReportPrint) Transaction(
	_ api.Datastorer, trans api.Transactor) error

type ReportRegister

type ReportRegister struct {
	// contains filtered or unexported fields
}

ReportRegister for register reporting.

func NewReportRegister

func NewReportRegister(args []string) (*ReportRegister, error)

NewReportRegister create an instance for register reporting.

func (*ReportRegister) BubblePosting

func (report *ReportRegister) BubblePosting(
	db api.Datastorer, trans api.Transactor,
	p api.Poster, account api.Accounter) error

func (*ReportRegister) Clone

func (report *ReportRegister) Clone() api.Reporter

func (*ReportRegister) Firstpass

func (report *ReportRegister) Firstpass(
	db api.Datastorer, trans api.Transactor, p api.Poster) error

func (*ReportRegister) Posting

func (report *ReportRegister) Posting(
	db api.Datastorer, trans api.Transactor, p api.Poster) error

func (*ReportRegister) Render

func (report *ReportRegister) Render(args []string, db api.Datastorer)

func (*ReportRegister) Startjournal

func (report *ReportRegister) Startjournal(fname string, included bool)

func (*ReportRegister) Transaction

func (report *ReportRegister) Transaction(
	db api.Datastorer, trans api.Transactor) error

type Reports

type Reports struct {
	// contains filtered or unexported fields
}

Reports manages all reporting commands.

func (*Reports) BubblePosting

func (reports *Reports) BubblePosting(
	db api.Datastorer, trans api.Transactor,
	p api.Poster, account api.Accounter) error

func (*Reports) Clone

func (reports *Reports) Clone() api.Reporter

func (*Reports) Firstpass

func (reports *Reports) Firstpass(
	db api.Datastorer, trans api.Transactor, p api.Poster) error

func (*Reports) Posting

func (reports *Reports) Posting(
	db api.Datastorer, trans api.Transactor, p api.Poster) error

func (*Reports) Render

func (reports *Reports) Render(args []string, db api.Datastorer)

func (*Reports) Startjournal

func (reports *Reports) Startjournal(fname string, included bool)

func (*Reports) String

func (reports *Reports) String() string

func (*Reports) Transaction

func (reports *Reports) Transaction(
	db api.Datastorer, trans api.Transactor) error

Jump to

Keyboard shortcuts

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