diff options
author | Özgür Kesim <oec@codeblau.de> | 2024-11-28 14:37:32 +0100 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2024-11-28 14:37:32 +0100 |
commit | 0ff7cb7e40c656e545494c62f2349bfd357fd317 (patch) | |
tree | 0560b0bbb3d0f03608e430550160dae7f50ce29d /templates/wp-total.t | |
parent | 2de8fe8b48580852013b87c16c199c6df4a46de9 (diff) |
start work on wp-totals
Diffstat (limited to 'templates/wp-total.t')
-rw-r--r-- | templates/wp-total.t | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/wp-total.t b/templates/wp-total.t new file mode 100644 index 0000000..a5fd93a --- /dev/null +++ b/templates/wp-total.t @@ -0,0 +1,12 @@ +{{ $p := .Project -}} +Total for {{ .WP }}: + - Budgeted: {{ printf "%8s" .Total.Budgeted.AsDay }} + - Planned: {{ printf "%8s" .Total.Planned.AsDay }}{{with .Total.Unaccounted }} !Unaccounted: {{printf "%8s" .AsDay}}{{end}} + - Actual: {{ printf "%8s" .Total.Actual.AsDay }} + - Per Task: +{{- range $n, $t := .Tasks }} + - {{ $t.ID }} ({{ $n }}):{{ $tt := $p.TotalWPTask .WP $t }} + - 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 }} +{{ end }} |