{{- define "body" -}}

Ledger for {{.Account}}

{{if not .Account -}}

Missing account query!

{{else -}} {{- range .Rows}} {{- if eq .Amount.Number 0}} {{else if gt .Amount.Number 0}} {{else}} {{- end}} {{- if .Balance.Unit.Symbol}} {{else}} {{- end}} {{- end}}
Date Description Ref Debit Credit Balance
{{.Date}} {{.Description}} {{.Position}} {{.Amount}} {{.Amount}}{{.Balance}}
{{end}} {{- end}}