From c86dfbfcee69062c3bd036a5070a6e62fb11e06c Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Wed, 27 Nov 2024 17:03:50 +0100 Subject: totals per wp --- templates/report.t | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'templates/report.t') 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 }} -- cgit v1.2.3