Just a followup for posterity, in case someone else manages to google-fu 
their way to this post.

Besides Stanko's solution above which is quite configurable and might meet 
your needs better, I ended up using ledger-pyreport for the task (a small 
python flask app which pumps out 3 of the 4 management summaries - does not 
have a Retained earnings report for corp filings.). The author was super 
responsive when I could not get it going and pointed me quickly to the 
problem. The reports also look great. 

https://yingtongli.me/blog/2020/03/31/ledger-pyreport.html

Three caveats that tripped me up getting it going - as it can be affected 
by the way you've recorded your ledger file: 

   1. You need to have your Assets and Liabilities structured so accounts 
   have a Current and Non-current "subcategory" ie. Assets:Current:SG Bank 
   Account. So, had to find/replace some category names in the journal file to 
   get pyreport to work (but irrelevant to me really and makes obvious sense 
   when you think about it if you need management summaries. Serves me right 
   for not paying more attention in Biz 257.).
   2. It expects a foreign currency conversion for each and every 
   transaction not in the main report currency (for me SGD).  So,  5000 EUR @ 
   1.6789 SGD or similar so it can get reports out properly.
   3. remove --pedantic from the example config file so that it is not 
   expecting all accounts to be predeclared before you actually use them. 
   
Other than that, worked smoothly and quite happy with it. Recommend it. 
Good luck and happy Year of the Tiger! 🐯

ciao !
Daryl.
PS> Thanks to everyone that also responded directly to me on the post. 

google juice signposting:
ledger
ledger-pyreport error
TypeError('Cannot compare Amount with non-zero number')
Error: Unknown account

On Wednesday, February 2, 2022 at 7:27:52 PM UTC+8 Daryl Manning wrote:

> *TLDR*
>
> I need some reasonably nicely formatted management summaries (balance, 
> income, cashflow, retained) to hand to my lawyers for small business 
> filing. What are people using for pdfs or indelible reports to interoperate 
> with lawyers/accountants? 
>
> *Longer Story*
> I've been using ledger for some time now and took the plunge during covid 
> to use it to run my small-ish business. For personal use have been using a 
> combination of it and reckon to automate entry. It's been great so far: 
> https://daryl.wakatara.com/tracking-your-finances-with-reckon-and-ledger
>
> I'm in the position now of having to file for 2020 and 2021 and need to 
> get some reasonably decent looking reports out of it (or export the text 
> and then format it) to hand to the lawyers for the government filings here. 
>
> What are people using to do this? What core snippets/resources are 
> available? My google-fu failed me searching for blog posts or code 
> resources on this one (I'm aware of ledger-pyreports though am having it 
> throw an error despite my ledger file being fine from ledger's perspective. 
> Have pinged author for a pointer... but what else is there and what are 
> people who aree needing to do this actually doing?).
>
> thanks! (and happy year of the tiger everyone!)
> Daryl. 
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/f5d6e866-f1e6-4bc5-90fd-09b91f2608can%40googlegroups.com.

Reply via email to