reports

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index added in v0.1.1

Types

type PageData

type PageData struct {
	From            string
	To              string
	GroupBy         string
	Sales           model.SalesSummary
	ByPeriod        []model.SalesPeriod
	ByPaymentMethod []model.PaymentMethodRevenue
	TopProducts     []model.TopProduct
	PL              model.PLSummary
	// BranchID is uuid.Nil when no branch filter is applied (all branches).
	BranchID uuid.UUID
	// Branches lists the company's branches, used as the filter dropdown's
	// options. Rendered only when there's more than one.
	Branches []model.Branch
}

PageData bundles all report data passed to the index template.

Jump to

Keyboard shortcuts

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