{{ define "title" -}} {{( pgettext "New Invoice" "title" )}} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.newInvoicePage*/ -}}

{{(pgettext "New Invoice" "title")}}

{{ csrfToken }} {{ with .Form -}} {{ template "hidden-select-field" .InvoiceStatus }} {{ template "select-field" .Customer }} {{ template "input-field" .Number }} {{ template "input-field" .Date }} {{ template "tags-field" .Tags }} {{ template "select-field" .PaymentMethod }} {{ template "input-field" .Notes }} {{- range $product := .Products }}
{{ template "hidden-field" .ProductId }} {{ template "input-field" .Name }} {{ template "input-field" .Price }} {{ template "input-field" .Quantity }} {{ template "input-field" .Discount }} {{ template "input-field" .Description }} {{ template "select-field" .Tax }}
{{- end }} {{- end }} {{- range $tax := .Taxes }} {{- end }}
{{(pgettext "Subtotal" "title")}} {{ .Subtotal | formatPrice }}
{{ index . 0 }} {{ index . 1 | formatPrice }}
{{(pgettext "Total" "title")}} {{ .Total | formatPrice }}
{{- end }}