{{ 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 not (or .Invoice .Expense)}} {{ end }} {{ $confirm := or (and .Invoice (gettext "Are you sure you wish to delete this collection?")) (gettext "Are you sure you wish to delete this payment?") }} {{ with .Payments }} {{- range $payment := . }} {{ if not (or $.Invoice $.Expense)}} {{ end }} {{- end }} {{ else }} {{ end }}
{{- if .Invoice -}} {{( pgettext "Collection Date" "title" )}} {{- else -}} {{( pgettext "Payment Date" "title" )}} {{- end -}} {{( pgettext "Description" "title" )}}{{( pgettext "Document" "title" )}}{{( pgettext "Status" "title" )}} {{( pgettext "Tags" "title" )}} {{( pgettext "Total" "title" )}} {{( pgettext "Download" "title" )}} {{( pgettext "Actions" "title" )}}
{{ .PaymentDate|formatDate }} {{ .Description }} {{- if .InvoiceNumber -}} {{- if eq .Type "P" -}} {{ .InvoiceNumber }} {{- else -}} {{ .InvoiceNumber }} {{- 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 -}}
{{- end }}