Documentation ¶
Overview ¶
UBL XML Invoice https://www.jortt.nl/online-boekhouden/ubl-factuur/
Index ¶
- Constants
- func Balance(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Delete(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Email(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Finalize(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func HourToInvoice(entity, year, project, name, hourStr, email, hourFile, from string, t *db.Txn) (string, error)
- func List(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Load(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func NextInvoiceID(entity string, t *db.Txn) (uint64, error)
- func Paid(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Pdf(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Reset(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Save(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Text(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func UBL(u *Invoice) (*bytes.Buffer, error)
- func Xml(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- type Counter
- type InputError
- type Invoice
- type InvoiceBank
- type InvoiceCustomer
- type InvoiceEntity
- type InvoiceLine
- type InvoiceMail
- type InvoiceMeta
- type InvoiceTotal
- type Job
- type ListReply
- type Reply
Constants ¶
View Source
const EUTaxComment = "VAT Reverse charge"
Variables ¶
This section is empty.
Functions ¶
func Balance ¶
func Balance(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Parse bankbalance in CAMT053-format
func Delete ¶
func Delete(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Email ¶
func Email(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Finalize ¶
func Finalize(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Lock invoice for changes and set invoiceid
func HourToInvoice ¶
func HourToInvoice(entity, year, project, name, hourStr, email, hourFile, from string, t *db.Txn) (string, error)
Convert hours to concept invoice
func List ¶
func List(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Load ¶
func Load(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Paid ¶
func Paid(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Mark invoice as paid
func Pdf ¶
func Pdf(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Reset ¶
func Reset(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Save ¶
func Save(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Text ¶
func Text(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Xml ¶
func Xml(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Types ¶
type InputError ¶
type InputError struct { Error string Fields validator.ErrorMap }
type Invoice ¶
type Invoice struct { Company string `validate:"nonzero"` Entity InvoiceEntity Customer InvoiceCustomer Meta InvoiceMeta Lines []InvoiceLine Notes string Total InvoiceTotal Bank InvoiceBank Mail InvoiceMail }
type InvoiceBank ¶
type InvoiceCustomer ¶
type InvoiceEntity ¶
type InvoiceLine ¶
type InvoiceMeta ¶
type InvoiceMeta struct { Conceptid string `validate:"slug"` Status string `validate:"slug"` Invoiceid string `validate:"slug"` Issuedate string `validate:"date"` Ponumber string `validate:"slug"` Duedate string `validate:"nonzero,date"` Paydate string `validate:"date"` Freefield string HourFile string }
type InvoiceTotal ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.