Commit graph

18 commits

Author SHA1 Message Date
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
4290a4ec52 Add balances for permanent (i.e., asset) accounts.
Based on a request from our accountants, I've changed the RUNNING TOTAL
field (which is generally useless to accountants anyway) to be a BALANCE
amount for starting and ending accounts.
2013-01-05 13:13:05 -05:00
Bradley M. Kuhn
e317e1f23e Sort of accounts was buggy; it never made the final else due to bad regexes.
This fix now has the sort working correctly.
2013-01-04 10:18:41 -05:00
Bradley M. Kuhn
f01ddd4766 Change chart of accounts output to be a CSV file instead of TXT file.
This includes adding a formatted start date string too.
2013-01-03 12:19:28 -05:00
Bradley M. Kuhn
bfdf20b31c Updated sorting function based on advice of auditing accountants.
Our auditing accounts tell us they want accounts sorted by:
Assets
Liabilities
Net Assets
Income
Expenses

in a general ledger report.  Generally, I think we should just apply the
same sorting.

Since Ledger doesn't use account codes by default, this is my hack to
solve this problem for now.  Maybe there should be an account code tag for
sorting purposes at least?
2013-01-03 11:44:55 -05:00
Bradley M. Kuhn
32e51f65a1 Verify that files are not duplicated in the MANIFEST.
Keep a hash so that file output to the MANIFEST file doesn't have
duplicates of the same file name in it.
2012-11-26 13:54:48 -05:00
Bradley M. Kuhn
3e634b6d45 Ignore <Adjustments> accounts. 2012-11-26 13:54:47 -05:00
Bradley M. Kuhn
586c4eb3b3 Use -V to normalize currencies in general-ledger report. 2012-11-26 13:54:46 -05:00
Bradley M. Kuhn
b5316132d4 MANIFEST output file that indicates which files are mentioned in general-ledger.
Due to reporting options given to ledger, not every file will be
referenced by the general-ledger spreadsheet.  The generated MANIFEST file
now indicates which files were actually referenced in the general-ledger.

The demo.sh script now uses this MANIFEST to create a zip file that
contains only those files.
2012-11-26 13:54:42 -05:00
Bradley M. Kuhn
01dc0416b9 Support a broader set of possible tags to be placed into the spreadsheet.
I've now made a hard-coded list of potential tags that are supported and
will be linked to in the general ledger spreadsheet.  This list should
probably be in a configuration file of some sort eventually, rather than
hard coded.

Indeed, note that the hard-coding goes into two different scripts, and
thus the lists could easily get out of sync.
2012-11-26 13:54:42 -05:00
Bradley M. Kuhn
613eb6ba71 Receipt/Invoice are additional information thus better if they're final columns.
Change the column of Receipt and Invoice in the CSV file first, then the
generated ODS file must have the same change propagated, which requires
changes to the column numbers hard-coding in csv2ods.py.

Perhaps if/when this application is refactored these things shouldn't be
hard-coded in this way in the first place.
2012-09-08 14:34:15 -04:00
Tom Marble
47130b2dfb First pass technical study of creating ODS from ledger 2012-09-08 00:30:37 -05:00
Bradley M. Kuhn
fb601e2a65 Updated copyright notice to reflect reality.
Both Tom and I have made copyrightable changes to this file this year.
2012-09-07 15:06:18 -04:00
Tom Marble
65e0c266be Changed general-ledger-report.plx to use tags for Receipt and Invoice (was %N)
Added sample PDF artifacts for the example (see README)
2012-09-07 13:24:26 -05:00
Bradley M. Kuhn
fb6f60477f There needs to be at least 3 args here, clearly. 2012-09-07 12:48:51 -04:00
Bradley M. Kuhn
0e8a0e8fb2 A few fixes to make this work with Ledger 3.x instead of 2.6.2
* --wide-register-format is no long an option, use -F
  * %D now must be %(date)
2012-09-07 12:48:30 -04:00
Bradley M. Kuhn
6a104ecc3e Switch ledger binary to /usr/local/bin/ledger. 2012-09-07 12:45:29 -04:00
Bradley M. Kuhn
8c8973e6cb General ledger reporting script, used for preparing a report for non-profit auditors.
I developed this, and therefore have the full git commit history, in my
personal "Small-Hacks" repository, which can be cloned from:
      git://gitorious.org/bkuhn/small-hacks.git

More details on that are available by visiting:
      https://gitorious.org/bkuhn/small-hacks
2012-09-07 12:45:07 -04:00