{{ define "title" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.expensesIndexPage*/ -}} {{( pgettext "Expenses" "title" )}} {{- end }} {{ define "breadcrumbs" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.expensesIndexPage*/ -}} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.expensesIndexPage*/ -}}
{{ with .Filters }} {{ template "select-field" .Contact }} {{ template "select-field" .ExpenseStatus }} {{ template "input-field" .FromDate }} {{ template "input-field" .ToDate }} {{ template "input-field" .InvoiceNumber }} {{ template "tags-field" .Tags | addTagsAttr (print `data-conditions="` .TagsCondition.Name `-field"`) }} {{ template "toggle-field" .TagsCondition }} {{ end }}
{{ if .Filters.HasValue }} {{( pgettext "Reset" "action" )}} {{ end }}
{{ range $class := .TaxClasses -}} {{ end -}} {{ with .Expenses }} {{- range $expense := . }} {{ range $class := $.TaxClasses -}} {{ $tax := index $expense.Taxes $class }} {{- end }} {{- end }} {{ else }} {{ end }} {{ if .Expenses }} {{ range $class := $.TaxClasses -}} {{ $tax := index $.SumTaxes $class }} {{- end }} {{ end }}
{{( pgettext "Contact" "title" )}} {{( pgettext "Invoice Date" "title" )}} {{( pgettext "Invoice Number" "title" )}} {{( pgettext "Status" "title" )}} {{( pgettext "Tags" "title" )}} {{( pgettext "Amount" "title" )}}{{ . }}{{( pgettext "Total" "title" )}} {{( pgettext "Download" "title" )}} {{( pgettext "Actions" "title" )}}
{{ .InvoicerName }} {{ .InvoiceDate|formatDate }} {{- if .InvoiceNumber -}} {{ .InvoiceNumber }} {{- end -}} {{ .StatusLabel }} {{- range $index, $tag := .Tags }} {{- if gt $index 0 }}, {{ end -}} {{ . }} {{- end }} {{ .Amount | formatPrice }}{{ if $tax }}{{ $tax | formatPrice }}{{ end }}{{ .Total | formatPrice }} {{ if .OriginalFileName }} {{ end }}
{{( gettext "No expenses added yet." )}}
{{( gettext "Total" )}} {{ .SumAmount | formatPrice }}{{ if $tax }}{{ $tax | formatPrice }}{{ else }}{{ "0.0" | formatPrice }}{{ end }}{{ .SumTotal | formatPrice }}
{{- end }}