Long time onlooker, first time poster.
I'm wondering if anyone has a syntax for referencing another file from
within the ledger file.
Some interesting uses this would allow:
- Running your paper receipts through a scanner, having them go
through image > text with tesseract or similar, and dump to a file
that can be reconciled against a bank statement. It would be useful
in a case like that to have a way to open the scanned graphic to
correct OCR errors, etc.
- Scan incoming checks to have a images of them pre-deposit.
- In an invoicing scenario, have the transactions link to the
invoice/documentation of work done/etc., in case they needed to be
reprinted, etc.
What I have worked up right now puts references in the note/comment
section, so my files look somewhat like this:
---
; FP:deposits="/files/accounting/deposits"
; FP:invoices="/files/accounting/invoices"
2010-01-21 * Invoice
Customers:Widgets Inc.:Invoice $-100 ; F:"invoices/widgets
inc./2010_01_21_invoice.pdf"
Company:Assets:Accounts Receivable
2010-01-22 * Payment
Customers:Widgets Inc.:Payments:Check $100 ;
F:"deposits/2010/checks/2010_01_22_widgets_inc.pdf"
Customers:Widgets Inc.:Equity -$100
Company:Assets:Accounts Receivable $-100
Company:Assets:Checking
----
The "FP:" lines are supply a partial path, in case I have to move
around the referenced files, whereas the "F:" lines are assumed to be
a full path if they start with a slash, but a continuation of the
partial path if not. Every filepath component is enclosed in quotes
to allow for spaces or other odd characters in the path or filename.
Has anyone else done something similar? I don't want to reinvent the
wheel here.
Thanks,
Zack