mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
tweak(beancount): +beancount/balance w/ prefix arg
Without the prefix arg, it will only display the balance of Assets and Liabilities. With it, the balance of all accounts will be shown.
This commit is contained in:
@ -120,11 +120,13 @@ If REVERSE (the prefix arg) is non-nil, sort the transactions in reverst order."
|
||||
|
||||
(defvar compilation-read-command)
|
||||
;;;###autoload
|
||||
(defun +beancount/balance ()
|
||||
(defun +beancount/balance (&optional all-accounts)
|
||||
"Display a balance report with bean-report (bean-report bal)."
|
||||
(interactive)
|
||||
(let (compilation-read-command)
|
||||
(beancount--run "bean-report" buffer-file-name "bal")))
|
||||
(interactive "P")
|
||||
(let ((args (unless all-accounts '("-e" "Assets|Liabilities")))
|
||||
compilation-read-command
|
||||
current-prefix-arg)
|
||||
(apply #'beancount--run "bean-report" buffer-file-name "balances" args)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +beancount/clone-transaction ()
|
||||
|
Reference in New Issue
Block a user