simple

package
v0.0.0-...-19239a5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: EUPL-1.2 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTemplate

func CreateTemplate(path, codeListsPath string) (*template.Template, error)

func GeneratePdf

func GeneratePdf(invoiceType string, tmpl *template.Template, rawInvoice []byte, id string) (io.Reader, error)

Types

type Code

type Code struct {
	Name struct {
		En string `json:"en"`
		Sk string `json:"sk"`
	}
}

type CodeList

type CodeList struct {
	Codes map[string]Code `json:"codes"`
}

type CodeLists

type CodeLists map[string]CodeList

type Label

type Label struct {
	SK string
	EN string
}

type RowData

type RowData struct {
	Label Label
	Value interface{}
}

type TemplateMeta

type TemplateMeta struct {
	IsInvoice bool
	TokenQR   string
	Xml       *metadataExtractor.UblInvoiceFull
}

Jump to

Keyboard shortcuts

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