summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@kesim.org>2024-11-28 16:36:54 +0100
committerÖzgür Kesim <oec@kesim.org>2024-11-28 16:36:54 +0100
commit69f0a3e8ebe620e840b7b49f8103ca41319ac031 (patch)
tree0f0bec2688714035bb794f0b0954b05c15208b0f /templates
parentd42495caa068d4fa59d5df6bb09ab5bed0919c56 (diff)
count open days
Diffstat (limited to 'templates')
-rw-r--r--templates/report.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/report.t b/templates/report.t
index b42aabe..9a807e5 100644
--- a/templates/report.t
+++ b/templates/report.t
@@ -10,12 +10,12 @@ Beneficiary: {{.Beneficiary}}
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.Actual.AsDay }}
+ - 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 }}
- Budgeted: {{ printf "%8s" $tt.Budgeted.AsDay }}
- Planned: {{ printf "%8s" $tt.Planned.AsDay }}{{with $tt.Unaccounted }} !Unaccounted: {{printf "%8s" .AsDay}}{{end}}
- - Actual: {{ printf "%8s" $tt.Actual.AsDay }}
+ - Actual: {{ printf "%8s" $tt.Done.AsDay }}{{with $tt.Open }} !TODO: {{printf "%8s" .AsDay}}{{end}}
{{ end }}
{{ end }}