summaryrefslogtreecommitdiff
path: root/benhours
blob: c490e2a96d42d4e6fed52157e4e1e4a49af1d57b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash -e

org2tc "$@"
    | ledger -f - --day-break print > /tmp/work.dat

echo
echo Daily totals
echo ================================================================================

ledger -f /tmp/work.dat                          \
    --columns=80 --day-break --daily            \
    --base --total='(1.00 hrs*amount)/3600'     \
    --sort date --collapse reg

echo
echo Daily breakdown
echo ================================================================================

ledger -f /tmp/work.dat                          \
    --columns=80 --day-break --daily            \
    --base --total='(1.00 hrs*amount)/3600'     \
    --sort date reg

echo
echo Weekly totals
echo ================================================================================

ledger -f /tmp/work.dat --weekly                 \
    --columns=80 --day-break                    \
    --base --total='(1.00 hrs*total)/3600'      \
    --sort date bal

echo

echo Allocations
echo ================================================================================

ledger -f /tmp/work.dat bal --base --percent --depth=1
echo

ledger -f /tmp/work.dat bal --base --percent --depth=2 55AJK