{{ define "title" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.PaymentIndexPage*/ -}} {{- if .Invoice -}} {{( pgettext "Collections" "title" )}} {{- else -}} {{( pgettext "Payments" "title" )}} {{- end -}} {{- end }} {{ define "breadcrumbs" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.PaymentIndexPage*/ -}} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.PaymentIndexPage*/ -}}
{{- if .Invoice -}} {{( pgettext "Collection Date" "title" )}} {{- else -}} {{( pgettext "Payment Date" "title" )}} {{- end -}} | {{( pgettext "Description" "title" )}} | {{ if not (or .Invoice .Expense)}}{{( pgettext "Document" "title" )}} | {{ end }}{{( pgettext "Status" "title" )}} | {{( pgettext "Tags" "title" )}} | {{( pgettext "Total" "title" )}} | {{( pgettext "Download" "title" )}} | {{( pgettext "Actions" "title" )}} |
---|---|---|---|---|---|---|---|
{{ .PaymentDate|formatDate }} | {{ .Description }} | {{ if not (or $.Invoice $.Expense)}}{{- if .InvoiceNumber -}} {{- if eq .Type "P" -}} {{ .InvoiceNumber }} {{- else -}} {{ .InvoiceNumber }} {{- end -}} {{- end -}} | {{ end }}{{ .StatusLabel }} | {{- range $index, $tag := .Tags }} {{- if gt $index 0 }}, {{ end -}} {{ . }} {{- end }} | {{- if eq .Type "P" -}}-{{ end }}{{ .Total | formatPrice }} | {{ if .OriginalFileName }} {{ end }} | |
{{- if .Invoice -}} {{( gettext "No collections added yet." )}} {{- else -}} {{( gettext "No payments added yet." )}} {{- end -}} |