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

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

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

{{ .Quoter.Name }}
{{ .Quoter.VATIN }}
{{ .Quoter.Address }}
{{ .Quoter.City }} ({{ .Quoter.PostalCode}}), {{ .Quoter.Province }}
{{ .Quoter.Email }}
{{ .Quoter.Phone }}
{{ .Quotee.Name }}
{{ .Quotee.VATIN }}
{{ .Quotee.Address }}
{{ .Quotee.City }} ({{ .Quotee.PostalCode}}), {{ .Quotee.Province }}
{{ if .TermsAndConditions -}}

{{(gettext "Terms and Conditions:")}} {{ .TermsAndConditions }}

{{- end }} {{- $columns := 5 | add (len .TaxClasses) | add (boolToInt .HasDiscounts) -}} {{ if .HasDiscounts -}} {{ end -}} {{ range $class := .TaxClasses -}} {{ end -}} {{ $lastIndex := len .Products | sub 1 }} {{ range $index, $product := .Products -}} {{- if .Description }} {{ end -}} {{- if .Description }} {{- else }} {{- end -}} {{ if $.HasDiscounts -}} {{ end -}} {{ range $class := $.TaxClasses -}} {{ end -}} {{ if (eq $index $lastIndex) }} {{ range $tax := $.Taxes -}} {{- end }} {{ end }} {{- end }}
{{( pgettext "Concept" "title" )}} {{( pgettext "Price" "title" )}}{{( pgettext "Discount" "title" )}}{{( pgettext "Units" "title" )}} {{( pgettext "Subtotal" "title" )}}{{ . }}{{( pgettext "Total" "title" )}}
{{ .Name }}
{{ .Description }}{{ .Name }}{{ .Price | formatPrice }}{{ $product.Discount | formatPercent }}{{ .Quantity }} {{ .Subtotal | formatPrice }}{{ index $product.Taxes $class | formatPercent }}{{ .Total | formatPrice }}
{{( pgettext "Tax Base" "title" )}} {{ $.Subtotal | formatPrice }}
{{ index . 0 }} {{ index . 1 | formatPrice }}
{{( pgettext "Total" "title" )}} {{ $.Total | formatPrice }}
{{ if .Notes -}}

{{ .Notes }}

{{- end }}

{{ .PaymentInstructions }}

{{- end}}