{{ define "title" -}} {{ .Number | printf ( pgettext "Invoice %s" "title" )}} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.invoice*/ -}}

{{ .Number | printf ( pgettext "Invoice %s" "title" )}}

{{( pgettext "Date" "title" )}} {{ .Date | formatDate }}

{{ .Invoicer.Name }}
{{ .Invoicer.VATIN }}
{{ .Invoicer.Address }}
{{ .Invoicer.City }} ({{ .Invoicer.PostalCode}}), {{ .Invoicer.Province }}
{{ .Invoicer.Email }}
{{ .Invoicer.Phone }}
{{ .Invoicee.Name }}
{{ .Invoicee.VATIN }}
{{ .Invoicee.Address }}
{{ .Invoicee.City }} ({{ .Invoicee.PostalCode}}), {{ .Invoicee.Province }}
{{ range $product := .Products -}} {{ if .Description }} {{ else }} {{- end }} {{- end }} {{ range $tax := .Taxes -}} {{- end }}
{{( pgettext "Concept" "title" )}} {{( pgettext "Price" "title" )}} {{( pgettext "Units" "title" )}} {{( pgettext "Subtotal" "title" )}}
{{ .Name }}
{{ .Description }} {{ .Price | formatPrice }} {{ .Quantity }} {{ .Total | formatPrice }}
{{ .Name }} {{ .Price | formatPrice }} {{ .Quantity }} {{ .Total | formatPrice }}
{{( pgettext "Subtotal" "title" )}} {{ .Subtotal | formatPrice }}
{{ index . 0 }} {{ index . 1 | formatPrice }}
{{( pgettext "Total" "title" )}} {{ .Total | formatPrice }}
{{ .Notes }}
{{- end}}