You could implement this on top of Fava (http://beancount.github.io/fava/):

- Generate your report as HTML and then print it as PDF. There are also 
libraries (http://weasyprint.org for example) that can do that on the server 
(in Fava) for you, so you can render a HTML-page to a PDF and then send it to 
the browser.

- In your HTML-template, use metadata for custom names and ordering. This could 
be optional, so if present it will be used, and the account name by default.

    open 2016-01-01 Assets:FixedAssets:Equip  USD
      report-name: "Equipment & Machinery"
      report-order: 2

- If you want to make it even more generic, use a custom option in beancount 
that let's you specify the path to a custom CSS file, so other users can 
include their own logo, colors, fonts and other styling without rewriting 
Python code. 

I would love to help if you submit a PR to Fava to include this as a new 
feature.

Best regards,
Dominik


> Am 16.11.2016 um 07:29 schrieb Len Wanger <[email protected]>:
> 
> 
> Hi,
> 
> Excuse the newbie question. I am trying to make reports that mimic financial 
> statements for a company. I could use some tips on how to get the reports 
> formatted for external consumption. I am currently working on the balance 
> sheet. A few questions I have:
> 
> - Is there a way to get the balance sheet report to: 1) show a specified 
> string for an account number, instead of the account name (e.g. account 
> Assets:FixedAssets:Equip to render as "Equipment & Machinery"? Also, is there 
> a way to get the accounts to render in a specified order instead of 
> alphabetical order (e.g I want to have bank accounts, then other current 
> assets, then fixed assets)?
> - To do this do I need to write a custom report in Python? Should I look 
> towards the query format? What's the best approach?
> 
> Thanks,
> 
> Len
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beancount/3dc4fc4a-3ec1-46ef-b3d7-2733613be376%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/0691EB74-6025-4341-80B6-F0D9ABD74B47%40aumayr.name.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to