report

package
v0.0.0-...-94c2642 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategorySummary

type CategorySummary struct {
	firefly.Category
	CategoryBudgetID int             `json:"category_budget_id"`
	Amount           decimal.Decimal `json:"amount"`
	Sum              decimal.Decimal `json:"sum"`
	Start            time.Time       `json:"start"`
	End              time.Time       `json:"end"`
}

type CategorySummaryDetail

type CategorySummaryDetail struct {
	CategorySummary
	Totals []firefly.CategoryTotal `json:"totals"`
}

type Reports

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

func (*Reports) FetchCategorySummary

func (r *Reports) FetchCategorySummary(catBgtID int) ([]CategorySummaryDetail, error)

func (*Reports) Handle

func (r *Reports) Handle(w http.ResponseWriter, req *http.Request)

func (*Reports) ListCategorySummaries

func (r *Reports) ListCategorySummaries(budgetID int) ([]CategorySummary, error)

Jump to

Keyboard shortcuts

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