On Thu, Dec 26, 2013 at 2:44 AM, John Wiegley <[email protected]> wrote: >> How would I do that with ledger? Some rule to automatically transfer some >> fund to dedicated "Tax" account and then simply run a report on this account >> for the given month? > > Ledger is really only designed for tracking the flow of money from account to > account; it's not really for doing complicated reports using those sums. > However, you could export the numbers that you need to work with, and then > import them into something else. Unless anyone else has an idea of how this > might be accomplished with automated transactions.
I tried doing this with automated transactions, but they fell down in the end. This is one of the reasons I wrote the python ledgercalc script available here: https://github.com/zdw/ledgercalc Basically, I have a bunch of lines that look like this, in a RPN style syntax (example from a US 1040 schedule C form) - the items in double quotes are totals of the matching ledger accounts. $f1040sc_line01_gross_reciepts "Customers:.*:Payments" = $f1040sc_line04_cogs $f1040sc_line42_cogs = $f1040sc_line05_gross_profit $f1040sc_line01_gross_reciepts $f1040sc_line04_cogs - = $f1040sc_line06_other_income 0 "Interest" - = $f1040sc_line07_gross_income $f1040sc_line05_gross_profit $f1040sc_line06_other_income + = The script outputs the values of all variables (anything with a $ prefix) in sorted order, which I can enter into forms. - Zack -- --- 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]. For more options, visit https://groups.google.com/groups/opt_out.
