diff options
author | Özgür Kesim <oec@kesim.org> | 2024-11-27 17:03:50 +0100 |
---|---|---|
committer | Özgür Kesim <oec@kesim.org> | 2024-11-27 17:03:50 +0100 |
commit | c86dfbfcee69062c3bd036a5070a6e62fb11e06c (patch) | |
tree | 5197971673381c539b39b0ff720d9d0659b161c7 /templates/report.t | |
parent | 2bb8dcc9f63fdc09acdc83186626525957a45f4d (diff) |
totals per wp
Diffstat (limited to 'templates/report.t')
-rw-r--r-- | templates/report.t | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/templates/report.t b/templates/report.t index d82b8bf..08f4f43 100644 --- a/templates/report.t +++ b/templates/report.t @@ -5,14 +5,13 @@ End: {{.End}} Beneficiary: {{.Beneficiary}} -# Calendar - -{{ range $y, $c := .Calendars }} -{{ $c }} +{{ 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 }} {{ end }} - - {{ range $id, $wp := .Workpackages -}} ## Workpackage {{ $id }}: {{ $wp.Title }} {{ range $tid, $task := $wp.Tasks }} |