Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContactInfo ¶
type Invoice ¶
type Invoice struct { Buyer Buyer `xml:"Buyer,omitempty"` InvoiceNo string `xml:"InvoiceNo,omitempty"` InvoiceDate date.Date `xml:"InvoiceDate,omitempty"` DueDate date.Date `xml:"DueDate,omitempty"` Currency currency.Unit `xml:"Currency,omitempty"` Lines Lines `xml:"Lines,omitempty"` TotalVATAmount json.Number `xml:"TotalVATAmount,omitempty"` TotalAmountInclVAT json.Number `xml:"TotalAmountInclVAT,omitempty"` TotalAmountExclVAT json.Number `xml:"TotalAmountExclVAT,omitempty"` TotalAmount json.Number `xml:"TotalAmount,omitempty"` Rounding json.Number `xml:"Rounding,omitempty"` Comments Comments `xml:"Comments,omitempty"` }
func (Invoice) MarshalXML ¶
type InvoiceList ¶
type InvoiceList struct { XMLName xml.Name `xml:"Ledger"` Version int `xml:"Version,omitempty"` Seller Seller `xml:"Seller,omitempty"` Invoice Invoice `xml:"Invoice,omitempty"` }
func NewInvoiceList ¶
func NewInvoiceList() *InvoiceList
type Line ¶
type Line struct { LineNo int `xml:"LineNo,omitempty"` Quantity int `xml:"Quantity,omitempty"` UnitMeasure string `xml:"UnitMeasure,omitempty"` Description string `xml:"Description,omitempty"` UnitAmount json.Number `xml:"UnitAmount,omitempty"` VATPct json.Number `xml:"VATPct,omitempty"` VATAmount json.Number `xml:"VATAmount,omitempty"` DiscountPct json.Number `xml:"DiscountPct,omitempty"` LineAmountInclVAT json.Number `xml:"LineAmountInclVAT,omitempty"` LineAmountExclVAT json.Number `xml:"LineAmountExclVAT,omitempty"` }
Click to show internal directories.
Click to hide internal directories.