summaryrefslogtreecommitdiff
path: root/templates/report.t
diff options
context:
space:
mode:
Diffstat (limited to 'templates/report.t')
-rw-r--r--templates/report.t15
1 files changed, 10 insertions, 5 deletions
diff --git a/templates/report.t b/templates/report.t
index a9b6a59..f2cc359 100644
--- a/templates/report.t
+++ b/templates/report.t
@@ -8,15 +8,20 @@ Beneficiary: {{.Beneficiary}}
# Planing
-{{ range $l := .ParallelWPTotals }}
-{{. -}}
+Budgeted : {{ $totals.Budgeted }}
+ Planned : {{ $totals.Planned }}{{with $totals.Unaccounted}}
+ ! Open !: {{ . }}{{end}}
+ Done : {{ $totals.Done }}{{ with $totals.Open }}
+ ! TODO !: {{ . }}{{end}}
+
+{{ range .ParallelWPTotals }}{{.}}
{{ end }}
{{range $wp, $t := $totals.WP }}
Total for {{ $wp }}:
- - Budgeted: {{ printf "%8s" $t.Budgeted.AsDay }}
- - Planned: {{ printf "%8s" $t.Planned.AsDay }}{{with $t.Unaccounted }} !Unaccounted: {{printf "%8s" .AsDay}}{{end}}
- - Actual: {{ printf "%8s" $t.Done.AsDay }}{{with $t.Open }} !TODO: {{printf "%8s" .AsDay }}{{end}}
+ - Budgeted: {{ printf "%8s" $t.Budgeted.AsDay }}
+ - Planned: {{ printf "%8s" $t.Planned.AsDay }}{{with $t.Unaccounted }} !Unaccounted: {{printf "%8s" .AsDay}}{{end}}
+ - Actual: {{ printf "%8s" $t.Done.AsDay }}{{with $t.Open }} !TODO: {{printf "%8s" .AsDay }}{{end}}
- Per Task:
{{- range $n, $t := $t.Tasks }}
- {{ $n }}:{{ $tt := $p.TotalWPTask $wp $n }}