Commit graph

14 commits

Author SHA1 Message Date
Bradley M. Kuhn
8908b03234 Use "ledger accounts" command rather than the '-F "%150A\n" reg' report solution.
Ledger has had (probably for some time) an "accounts" command that will list
all the accounts from all transactions meeting the other criteria set on the
command line.  That's really what we're looking for here when we build this
chart of accounts, and thus that should be used.

Note that this corrects a subtle bug that wasn't apparent with the old
solution.  With the '-F "%150A\n" reg' solution, accounts that balanced out
to zero for period (e.g., accrual accounts that were emptied during in the
month) did not show up on the reports.  This bug that I didn't know I had
here is thus now fixed by switching to the "accounts" report.
2013-07-12 14:26:29 -04:00
Bradley M. Kuhn
88667ca0c5 Comment to expound more on what it means for <Adjustment> entries to be ignored by these reports.
Loïc Dachary <loic@dachary.org>, during patch review, pondered whether the
ignoring of <Adjustment> by these scripts could ever be used to hide funds,
ala the movies Superman III and Office Space.

After discussion, we both concluded that it would not be possible to hide
funds merely with this report.  Such hiding would have to also dig into the
main Ledger codebase and muck with how it handles auto-generated <Adjustment>
entries.
2013-02-20 08:10:27 -05:00
Bradley M. Kuhn
a8403eac53 Include better explanation of what this report is for in the comments. 2013-02-20 07:59:11 -05:00
Bradley M. Kuhn
c2bc7b6b9e Equity and Adjustment accounts should not appear in these reports at all.
There were a few spots where they were still sneaking in.
2013-02-19 09:13:05 -05:00
Bradley M. Kuhn
8fa91dcb31 Remove spurious print statement. 2013-02-18 14:20:15 -05:00
Bradley M. Kuhn
77827f9c80 Subtotaling of BRANCH DEPOSITs.
The auditors seem to like to see the check deposits made to be subtotaled, so
that's done here.  I attempted to aid this by using a --sort and/or
--sort-xacts option (or combo thereof) on the ledger command line, but this
didn't work as expected.  I opened a bug in ledger about this:
   http://bugs.ledger-cli.org/show_bug.cgi?id=901
2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
a08dd787de Remove extra newline 2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
aea1445b04 Rework report to be just two files (disbursements and receipts).
Ensure that tagged linked files appear for all lines.
2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
86b2043042 Remove output of TXT files. CSV output is adequate. 2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
8cddda4c3e More flexible CSV -> ODS hyperlinks and pagebreaks; csv2ods.py produces MANIFEST.
Previous version of csv2ods.py simply assumed that fields beyond five
would have links to files.  This obviously lacked flexibility and was a
silly hard-code.  Now, those CSV fields that have link:SOMETHING will
cause a hyperlink to be created to SOMETHING.

Meanwhile, the pagebreak support was similarly hard-coded.  Now, any CSV
field that has the word "pagebreak" in it will generate a pagebreak.

The general ledger and cash receipts/disbursement journals have been
modified to make use of these new features in csv2ods.py.

Finally, the --skip-page-break option is now moot in csv2ods.py, so that
is herein removed.
2013-01-06 19:43:54 -05:00
Bradley M. Kuhn
df6428f549 Adapted for use with Ledger 3.
Includes forcing of -V so all currency is in default.
2012-11-26 13:54:47 -05:00
Bradley M. Kuhn
c7a798be8e Fixed output. 2012-11-26 13:54:46 -05:00
Bradley M. Kuhn
d817000b82 Various changes to get the script working. 2012-11-26 13:54:46 -05:00
Bradley M. Kuhn
ca359f0606 First attempt at this cash-receipts-and-disbursments-journals.plx script,
based on general-ledger-report.plx
The general-ledger-report.plx was originally found in this repository:
  http://gitorious.org/bkuhn/small-hacks/blobs/master/general-ledger-report.plx
And these early commits on cash-receipts-and-disbursments-journals.plx
were fro that repository as well, in:
http://gitorious.org/bkuhn/small-hacks/blobs/master/cash-receipts-and-disbursments-journals.plx
2012-11-26 13:54:46 -05:00