summaryrefslogtreecommitdiff
path: root/templates/report.t
blob: d89b9217e6f83d942930b9119c04411dc21f2d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Project:     {{.Name}}
Grant:       {{.Grant}}
Start:       {{.Start}}
End:         {{.End}}
Beneficiary: {{.Beneficiary}}{{- $p := .}}

# Planing
{{range $wp, $t := .Totals }}
Total for {{ $wp }}:
  - Budgeted:		{{ printf "%8s" $t.Budgeted.AsDay }}
  - Planned:		{{ printf "%8s" $t.Planned.AsDay }}{{with $t.Unaccounted }}	!Unaccounted: {{.AsDay}}{{end}}
  - Actual:			{{ printf "%8s" $t.Actual.AsDay }}
  - Per Task:
  {{- range $n, $t := (index $p.Workpackages $wp).Tasks }}
     - {{ $t.ID }} ({{ $n }}):{{ $tt := $p.TotalWPTask $wp $n }}
       - Budgeted:	{{ printf "%8s" $tt.Budgeted.AsDay }}
       - Planned:	{{ printf "%8s" $tt.Planned.AsDay }}{{with $tt.Unaccounted }}	!Unaccounted: {{.AsDay}}{{end}}
       - Actual:	{{ printf "%8s" $tt.Actual.AsDay }}
  {{ end }}
{{ end }}