diff options
Diffstat (limited to 'templates/report.t')
-rw-r--r-- | templates/report.t | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/report.t b/templates/report.t index 9a807e5..a9b6a59 100644 --- a/templates/report.t +++ b/templates/report.t @@ -4,16 +4,22 @@ Start: {{.Start}} End: {{.End}} Beneficiary: {{.Beneficiary}} {{- $p := . }} +{{- $totals := .Totals }} # Planing -{{range $wp, $t := .Totals }} + +{{ range $l := .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 := (index $p.Workpackages $wp).Tasks }} - - {{ $t.ID }} ({{ $n }}):{{ $tt := $p.TotalWPTask $wp $n }} + {{- 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}} |