mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(beancount): +beancount/balance: omit zeroed accounts
This commit is contained in:
@ -127,9 +127,12 @@ If REVERSE (the prefix arg) is non-nil, sort the transactions in reverst order."
|
||||
current-prefix-arg)
|
||||
(beancount--run "bean-query"
|
||||
buffer-file-name
|
||||
(format "balances WHERE NOT close_date(account)%s"
|
||||
(format (concat "SELECT account, sum(position) as balance %s "
|
||||
"GROUP BY account "
|
||||
"HAVING not empty(sum(position)) "
|
||||
"ORDER BY account")
|
||||
(if all-accounts
|
||||
"" (format " AND account ~ \"^(Assets|Liabilities)\"" ))))))
|
||||
"" (format "WHERE account ~ \"^(Assets|Liabilities)\"" ))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +beancount/clone-transaction ()
|
||||
|
Reference in New Issue
Block a user