ledger reconcile will recommend the account in the posting, even if point isn't in it.
This commit is contained in:
parent
838625f8a3
commit
add716f776
1 changed files with 1 additions and 2 deletions
|
|
@ -93,8 +93,7 @@
|
|||
|
||||
(defun ledger-read-account-with-prompt (prompt)
|
||||
(let* ((context (ledger-context-at-point))
|
||||
(default (if (and (eq (ledger-context-line-type context) 'acct-transaction)
|
||||
(eq (ledger-context-current-field context) 'account))
|
||||
(default (if (eq (ledger-context-line-type context) 'acct-transaction)
|
||||
(regexp-quote (ledger-context-field-value context 'account))
|
||||
nil)))
|
||||
(ledger-read-string-with-default prompt default)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue