all repos — nixfiles @ d94444b4f684589b8388cfb451b879bb5df1d55a

System and user configuration, managed by nix and home-manager

Emacs: Add Budget Allocation ledger report
Alan Pearce alan.pearce@spotcap.com
Tue, 29 Mar 2016 14:25:15 +0200
commit

d94444b4f684589b8388cfb451b879bb5df1d55a

parent

f351ba6a97f5940af2b4de48f17f31c008d7c911

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -1401,8 +1401,12 @@ ledger-reports '(("Monthly Expenses" "ledger -f %(ledger-file) reg -M Expenses --real -l \"payee != 'Opening Balances'\"")                                      ("Expenses:This Month" "ledger -f %(ledger-file) bal \\^Expenses -p \"this month\"")
                                      ("On-budget Balances" "ledger -f %(ledger-file) bal --current -R :Budget: Assets:Receivable Liabilities:Personal")
                                      ("All Account Balances" "ledger -f %(ledger-file) bal --current -R \\^Assets \\^Liabilities")
-                                     ("Budget Values (Current Month)" "ledger -f %(ledger-file) bal -p \"this month\" --limit \"payee=~/budget/\"")
+                                     ("Budget Values (Current Month)" "ledger -f %(ledger-file) bal -p \"this month\" --limit \"payee=~/budget/\" \\^Funds")
                                      ("Budget (Cumulative)" "ledger -f %(ledger-file) bal \\^Funds")
+                                     ("Budget Allocation" "ledger -f %(ledger-file) bal -p \"this month\" --limit \"payee=~/budget/\" \\^Funds --format \"\\
+                                      %-17((depth_spacer)+(partial_account))\\
+                                      %10(percent(market(display_total), market(parent.total)))\\
+                                      %16(market(display_total))\n%/\"")
                                      ("bal" "ledger -f %(ledger-file) bal")
                                      ("reg" "ledger -f %(ledger-file) reg")
                                      ("equity" "ledger -f %(ledger-file) equity")