Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardSubReport ¶ added in v0.18.0
type CardSubReport struct { // Title is a text that precedes the table Title string // Alignment is the alignment of the text (header and content) inside the columns Align consts.Align // TODO move Align to each column if possible with text styles // Captions is a list of captions for every table's colum or card file Captions []string // Widths is a list of columns' widths Widths []uint // Data is a list of lists containing every cell text Data [][]string }
func (CardSubReport) GetTitle ¶ added in v0.18.0
func (c CardSubReport) GetTitle() string
func (CardSubReport) Render ¶ added in v0.18.0
func (c CardSubReport) Render(maroto pdf.Maroto)
type CustomerCardsReports ¶ added in v0.18.0
type CustomerCardsReports struct {
// contains filtered or unexported fields
}
func NewCustomerCardsReports ¶ added in v0.18.0
func NewCustomerCardsReports(configService ports.ConfigService, dbService ports.DbService, osService ports.OsService) CustomerCardsReports
func (CustomerCardsReports) Run ¶ added in v0.18.0
func (c CustomerCardsReports) Run() (string, error)
type CustomerReport ¶
type CustomerReport struct {
// contains filtered or unexported fields
}
func NewCustomerReport ¶
func NewCustomerReport(configService ports.ConfigService, dbService ports.DbService, osService ports.OsService) CustomerReport
func (CustomerReport) Run ¶
func (c CustomerReport) Run() (string, error)
type InvoiceReport ¶ added in v0.18.0
type InvoiceReport struct {
// contains filtered or unexported fields
}
func NewInvoiceReport ¶ added in v0.18.0
func NewInvoiceReport(configService ports.ConfigService, osService ports.OsService, dbService ports.DbService) InvoiceReport
func (InvoiceReport) MonthInvoices ¶ added in v0.18.0
func (i InvoiceReport) MonthInvoices(yearMonth model.YearMonth) (string, error)
func (InvoiceReport) SingleInvoice ¶ added in v0.18.0
func (i InvoiceReport) SingleInvoice(id string) (string, error)
type MonthReport ¶
type MonthReport struct {
// contains filtered or unexported fields
}
func NewMonthReport ¶
func NewMonthReport(configService ports.ConfigService, dbService ports.DbService, osService ports.OsService, langService lang.LangService) MonthReport
type ProductsReport ¶
type ProductsReport struct {
// contains filtered or unexported fields
}
func NewProductsReport ¶
func NewProductsReport(configService ports.ConfigService, dbService ports.DbService, osService ports.OsService) ProductsReport
func (ProductsReport) Run ¶
func (p ProductsReport) Run() (string, error)
type ReportDefinition ¶ added in v0.18.0
type ReportDefinition struct { // PageOrientation is a representation of a page orientation (either Portrait or Landscape) PageOrientation consts.Orientation // Title is the report's main title Title string Footer string // SubReports is a list of SubReports to include inside the main report, in order and one below the other SubReports []SubReport }
type ReportService ¶ added in v0.18.0
type ReportService interface {
SaveToFile(reportDefinition ReportDefinition, filePath string) error
}
func NewReportService ¶ added in v0.18.0
func NewReportService(configService ports.ConfigService, osService ports.OsService) ReportService
type TableSubReport ¶ added in v0.18.0
type TableSubReport struct { // Title is a text that precedes the table Title string // Alignment is the alignment of the text (header and content) inside the columns Align consts.Align // Captions is a list of captions for every table's colum or card file Captions []string // Widths is a list of columns' widths Widths []uint // Data is a list of lists containing every cell text Data [][]string }
func (TableSubReport) GetTitle ¶ added in v0.18.0
func (r TableSubReport) GetTitle() string
func (TableSubReport) Render ¶ added in v0.18.0
func (r TableSubReport) Render(maroto pdf.Maroto)
Click to show internal directories.
Click to hide internal directories.