Make quick balance showed "cleared" results
This commit is contained in:
parent
3adab52660
commit
76145828fd
1 changed files with 6 additions and 10 deletions
|
|
@ -62,16 +62,12 @@ And calculate the target-delta of the account being reconciled."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
||||||
(let* ((account (ledger-read-account-with-prompt "Account balance to show"))
|
(let* ((account (ledger-read-account-with-prompt "Account balance to show"))
|
||||||
(pending (ledger-reconcile-get-cleared-or-pending-balance (current-buffer) account)))
|
(buffer (current-buffer))
|
||||||
(when pending
|
(balance (with-temp-buffer
|
||||||
(if ledger-target
|
(ledger-exec-ledger buffer (current-buffer) "cleared" account)
|
||||||
(message "%s balance: %s, Difference from target: %s"
|
(buffer-substring-no-properties (point-min) (1- (point-max))))))
|
||||||
account
|
(when balance
|
||||||
(ledger-commodity-to-string pending)
|
(message balance))))
|
||||||
(ledger-commodity-to-string (-commodity ledger-target pending)))
|
|
||||||
(message "%s balance: %s"
|
|
||||||
account
|
|
||||||
(ledger-commodity-to-string pending))))))
|
|
||||||
|
|
||||||
(defun ledger-magic-tab (&optional interactively)
|
(defun ledger-magic-tab (&optional interactively)
|
||||||
"Decide what to with with <TAB> .
|
"Decide what to with with <TAB> .
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue