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

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

{{ csrfToken }} {{ with .Form -}} {{ if .RemovedProduct -}}
{{ with .RemovedProduct -}}

{{printf (gettext "Product ā€œ%sā€ removed") .Name}}

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