diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/report.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/report.t b/templates/report.t index d89b921..c1e470e 100644 --- a/templates/report.t +++ b/templates/report.t @@ -8,13 +8,13 @@ Beneficiary: {{.Beneficiary}}{{- $p := .}} {{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}} + - Planned: {{ printf "%8s" $t.Planned.AsDay }}{{with $t.Unaccounted }} !Unaccounted: {{printf "%8s" .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 }} + - Budgeted: {{ printf "%8s" $tt.Budgeted }} + - Planned: {{ printf "%8s" $tt.Planned }}{{with $tt.Unaccounted }} !Unaccounted: {{printf "%8s" .AsDay}}{{end}} + - Actual: {{ printf "%8s" $tt.Actual }} {{ end }} {{ end }} |