invoices

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAllInvoices

func GenerateAllInvoices(s schema.Schema, dstFolder, place string, doOverwrite bool)

GenerateAllInvoices takes the schema and the place (the city where the invoice is generated) and generates an invoice-letter for all invoices in the schema and save it to the given destination folder.

func GenerateInvoice

func GenerateInvoice(company schema.Company, invoice schema.Invoice, customer schema.Party, place, dstPath string)

GenerateInvoice generates an invoice for a given invoice record. Place is the city where the invoice is generated.

Types

type InvoiceDocument

type InvoiceDocument struct {
	document.Doc
	// contains filtered or unexported fields
}

InvoiceDocument is a Doc report which generates a invoice-letter.

func NewInvoiceDocument

func NewInvoiceDocument(fontSize int, place string) InvoiceDocument

NewInvoiceDocument returns a new InvoiceDocument.

func (*InvoiceDocument) Generate

func (d *InvoiceDocument) Generate(company schema.Company, invoice schema.Invoice, customer schema.Party) gopdf.GoPdf

Generate generates a PDF for a given InvoiceDocument and returns it as a gopdf.GoPdf element.

Jump to

Keyboard shortcuts

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