{{ 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 }}
{{ $lastIndex := len .Products | sub 1 }} {{ range $index, $product := .Products -}} {{ if .Description }} {{ else }} {{- end }} {{ if (eq $index $lastIndex) }} {{ range $tax := $.Taxes -}} {{- end }} {{ end }} {{- 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 }}
{{ if .Notes -}}

{{ .Notes }}

{{- end }}
{{- end}}