Org-Capture Template for shop items from paper bills with history and autocompletion in Ledger format.
(add-to-list 'load-path "<< path-to-this-files >>")
(load-library "ledger-shopping-capture")
(setq org-capture-templates
`(("r" "(R)eceipt" plain
(file+function "~/output.org"
(lambda () ""
(progn (org-babel-goto-named-src-block "balance")
(org-babel-goto-src-block-head)(forward-line))))
(function sbit/ledger-shopping-capture-dialog)
:jump-to-captured t
:empty-lines-after 1
:immediate-finish t)))
inside the output.org I have a ledger src block if you want the output into a ledger file replace the output with:
(file "path/to/ledger-file")