Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bill ¶
type Bill struct { ClientName string ClientAddress CompanyAddress InvoiceNumber string DateOfIssue string // nothing fancy here and complicated, we will just prepend the currency with the price Currency string Units []Unit }
Bill represent the overview representation of a bill
func (Bill) FullClientAddress ¶
FullClientAddress returns the complete information of the client in string
func (Bill) InvoiceTotal ¶
InvoiceTotal computes the total of the invoice due by the client
type CompanyAddress ¶
CompanyAddress contains the address of the company
func (CompanyAddress) String ¶
func (c CompanyAddress) String() string
type CompanyDetails ¶
CompanyDetails contains the details of the company
func (CompanyDetails) String ¶
func (c CompanyDetails) String() string
type Generator ¶
type Generator struct { CompanyDetails CompanyAddress Bill }
Generator invoice in PDF
Click to show internal directories.
Click to hide internal directories.