Skip to content

Instantly share code, notes, and snippets.

@jralls
Created May 29, 2020 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jralls/d295897b0eb2df30324842648db45bcc to your computer and use it in GitHub Desktop.
Save jralls/d295897b0eb2df30324842648db45bcc to your computer and use it in GitHub Desktop.
Added:
(define (template-export report template export-type output-file dry-run?)
(begin
(format #t "Template export ~a ~a ~a ~a ~a~%" report template export-type output-file dry-run?)
(let* ((report-guid (gnc:report-template-report-guid template))
Which printed
Template export Balance Sheet #<<report-template> version: 1 name: Balance Sheet report-guid: c4173ac99b2b448289bf4d11c731af13 parent-type: #f options-generator: #<procedure 1161d2df0 at standard/balsheet-pnl.scm:1294:20 ()> options-cleanup-cb: #f options-changed-cb: #f renderer: #<procedure 1161d2e00 at standard/balsheet-pnl.scm:1295:11 (rpt)> in-menu?: #t menu-path: (_Assets & Liabilities) menu-name: #f menu-tip: #f export-types: #f export-thunk: #f> #t
Backtrace:
2 (apply-smob/1 #<catch-closure 112e2bd80>)
In report-core.scm:
786:30 1 (template-export "Balance Sheet" _ "" "" #t)
In ice-9/boot-9.scm:
1303:15 0 (_ _)
ice-9/boot-9.scm:1303:15: In procedure struct_vtable: Wrong type argument in position 1 (expecting struct): #f
When given
bin/gnucash-cli --run-report "Balance Sheet" --input-file ~/Documents/Accounts/AJ-MAVR\ Trust
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment