Hi Charles,
I can comment on some parts of your request, but not all :)
> I keep track of customer invoices using this account structure:
> Assets:Receivables:<customer>:<invoice>, meaning a new ledger account gets
> created with every new invoice. One disadvantage of this structure is not
> being able to predeclare these invoice accounts, so I can't use --strict
> and/or --pedantic to help prevent entry errors.
This is exactly how I do it. I don't use strict or pedantic (I really
should, and plan to). But as part of my invoice generation, I
generate the ledger entry too, so I would probably append the new
account (invoice id) to the file that contained the list of valid
accounts. Maybe you can do something similar?
> If not, I have built a way to do it using ledger, awk and bash commands in
> a bash script. But it's inelegant because I need to call ledger several
> times with different commands and options just to gather the data I need to
> generate the aging report. It would be neat to have a single ledger command
> that would generate a receivables again report without a bunch of bash code
> on the back end. Any ideas?
Agree - I munge my data with perl to report on what I want (but do not
yet do an ageing report. My small business is large busy enough to
worry).
But I am very interested in any suggested approaches to this.
Hopefully someone else chimes in with something more useful :)
Regards,
Chris