summaryrefslogtreecommitdiff
path: root/templates/report.t
blob: f2cc359ebc8bdd6681ab1b235a83db4133a0dc0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Project:     {{.Name}}
Grant:       {{.Grant}}
Start:       {{.Start}}
End:         {{.End}}
Beneficiary: {{.Beneficiary}}
{{- $p := . }}
{{- $totals := .Totals }}

# Planing

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}}
  - Per Task:
  {{- range $n, $t := $t.Tasks }}
     - {{ $n }}:{{ $tt := $p.TotalWPTask $wp $n }}
       - Budgeted:	{{ printf "%8s" $tt.Budgeted.AsDay }}
       - Planned:	{{ printf "%8s" $tt.Planned.AsDay }}{{with $tt.Unaccounted }}	!Unaccounted: {{printf "%8s" .AsDay}}{{end}}
       - Actual:	{{ printf "%8s" $tt.Done.AsDay }}{{with $tt.Open }}	!TODO: {{printf "%8s" .AsDay}}{{end}}
  {{ end }}
{{ end }}