billing

package
v0.0.0-...-19dc864 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvoiceData

type InvoiceData struct {
	Number      string
	Date        string
	BilledTo    []string
	CompanyInfo []string
	Items       []InvoiceItem
	Subtotal    string
	Discount    string
	TaxRate     string
	Tax         string
	Total       string
	Terms       string
	BankDetails []string
}

type InvoiceItem

type InvoiceItem struct {
	Description string
	UnitCost    string
	Qty         string
	Amount      string
}

type UseCase

type UseCase struct{}

func New

func New() *UseCase

func (*UseCase) GenerateInvoicePDF

func (uc *UseCase) GenerateInvoicePDF(data InvoiceData, outputPath string) error

GenerateInvoicePDF generates a PDF invoice and returns the file path

Jump to

Keyboard shortcuts

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