Commit graph

93 commits

Author SHA1 Message Date
Bradley M. Kuhn
cf969fcbb4 Formatting changes, and added total for restricted funds. 2012-11-26 13:54:43 -05:00
Bradley M. Kuhn
9051804fb1 Fixed formatting and added sanity check code. 2012-11-26 13:54:43 -05:00
Bradley M. Kuhn
daad6e5700 Added income/expense summing. 2012-11-26 13:54:43 -05:00
Bradley M. Kuhn
55227e4d2c Fix ledger options and be sure starting is set to zero for new funds. 2012-11-26 13:54:43 -05:00
Bradley M. Kuhn
6a3b25f85b Began fund-report.plx, which started as a copy of trial-balance-report.plx.
The revision history of trial-balance-report.plx can be found in the following location:
  http://gitorious.org/bkuhn/small-hacks/blobs/history/master/trial-balance-report.plx
2012-11-26 13:54:43 -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
287a756ab6 New test data for increasing the set of possible tags.
I use more tags than just Invoice and Receipt, so I'd like this to support
more than just two.  Here's some test data showing other tags that I use.
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
Bradley M. Kuhn
7f565df353 Added additional transaction to test data, this one has both Receipt and Invoice. 2012-09-07 15:04:44 -04:00
Bradley M. Kuhn
b9e534d372 Fixed 2010/01/01 test data and added an invoice for it. 2012-09-07 14:58:36 -04:00
Bradley M. Kuhn
8900ba0503 Merge branch 'contrib-non-profit-annual-audit-reports' of gitorious.org:ledger/ledger into contrib-non-profit-annual-audit-reports 2012-09-07 14:27:47 -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
5aea0446e1 Don't use all caps for tags in test data. 2012-09-07 13:17:15 -04:00
Bradley M. Kuhn
ca77b08fcc Make test data slightly more realistic. 2012-09-07 12:49:31 -04: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
Bradley M. Kuhn
7c57cf4e54 Initial test data for the non-profit-audit-reports contrib application.
The basic idea here is that given non-profit-test-data.ledger herein,
there should be a script that I could run, in this fashion:

    $ general-ledger-report -b 2011/03/01 -e 2012/03/01  -f tests/non-profit-test-data.ledger

that would generate:

   non-profit-test-data_chart-of-accounts.txt
   non-profit-test-data_general-ledger.ods

Note that the ODS file currently has placeholders, as I haven't fully
figured out how to use the =hyperlink() function to make relative
hyperlinks.
2012-09-06 20:31:48 -04:00
Bradley M. Kuhn
e98fcf3cb9 contrib/non-profit-audit-reports/ directory will be a small GPLv3'd application.
Upon discussion with John Wiegley <johnw@newartisans.com> on #ledger on
irc.freenode.net, the following was indicated:

<johnw> bkuhn: as long as the GPL infection stays in contrib, I see no problem
        with it
...
<bkuhn> ... I got the ... answer, which is "johnw will accept GPL'd stuff
        in contrib/..., as long as it's careful to not cause GPL to cover
        the main Ledger codebase that's not in contrib/..."

Therefore, the non-profit-audit-reports/ application will be licensed
GPLv3-or-later.
2012-09-06 20:31:48 -04:00
Johann Klähn
76ab0acaaa vim. small fixes for syntax highlighting
Also pre-declarations aren't folded anymore because the current
'foldexpr' does not make too much sense for them.
2012-04-22 16:03:51 +02:00
Johann Klähn
5f85c72d08 vim. add indent file
Adresses Bug 529.
2012-04-22 15:42:57 +02:00
Johann Klähn
55256d7445 vim. update syntax file 2012-04-22 15:42:28 +02:00
Johann Klähn
dc0264aca1 vim. set commentstring
Fixes bug 528.
2012-04-22 15:41:57 +02:00
Johann Klähn
e2613d30d2 vim. fix handling of automated/recurring xacts 2011-07-31 17:43:57 +02:00
Johann Klähn
ecb5dac1da vim. improve completion and cache invalidation
The completion cache for account names will be updated
if there were no exact matches and the file was changed
since the cache has been generated.
2011-07-31 17:39:02 +02:00
Johann Klähn
24226c890e vim. allow cleared state for single postings
This should fix problems with account completion when using
marks with single postings as in:

2000/01/01 Whatever
  * account  5$
  some other account
2011-07-31 16:58:16 +02:00
Johann Klähn
1ef5e525be vim. add completion cache and payee completion 2011-05-09 19:57:50 +02:00
Johann Klähn
2da33a83e5 vim. update documentation somewhat 2011-05-09 19:57:50 +02:00
Johann Klähn
976d9e5d8b vim. correctly parse first lines of transactions
This fixes trailing comments being chopped of
and later readded with too few spaces. (when calling format_head())
2011-05-09 19:57:50 +02:00
Vladimir Parfinenko
da341726c2 vim. fix highlighting of accounts
fixes such situations: "baz:foo a foo:baz"
2011-02-27 15:44:29 +06:00
Johann Klähn
67aadeb808 vim. fix unset completion type 2011-01-04 16:30:04 -05:00
Johann Klähn
64ce9e2e99 vim. highlight typed tags
See mailing list on June 12 2010 / "New: Support for typed metadata"
Message-Id: <D22C04C4-64F7-49B9-8006-2F7F97A4298A@gmail.com>
2010-10-07 18:09:01 +02:00
Johann Klähn
4d56417f75 vim. parse comments at eol in parse_body() 2010-09-15 21:18:23 +02:00
Johann Klähn
2a82edb9f0 vim. highlight metadata on same line as posting 2010-09-15 20:46:18 +02:00
Johann Klähn
4886646614 vim. fix off-by-one bug in ToggleTransactionState 2010-09-15 20:08:22 +02:00
Johann Klähn
453327a180 vim. fix issue with description in from_lnum()
Thanks to Chad Voegele, see mailing list ledger-cli@googlegroups.com:
  Whenever I had a transaction such as
  2010/09/10 * castle bar, nyc (beer)
  the transaction.from_lnum function would recognize (beer) as the code
  for the transaction which is incorrect since it comes at the end of
  the line.

Message ID:
73e397f4-234e-46fe-87e5-45f86f934bf1@k30g2000vbn.googlegroups.com
2010-09-15 20:03:27 +02:00
Johann Klähn
c2384b6046 vim. fix highlighting of comments at end of line 2010-09-13 13:09:17 +02:00
Johann Klähn
0f81c67c29 vim. change syntax file to allow comments at eol 2010-09-13 12:55:36 +02:00
Johann Klähn
86153f670d vim. remove tag completion for now 2010-09-12 14:23:30 +02:00
Johann Klähn
3a679a695d vim. avoid misinterpretion of 1 char words 2010-09-12 14:18:06 +02:00
Johann Klähn
1be3a79385 vim. check for most common case first (parse_body) 2010-09-08 23:29:36 +02:00
Johann Klähn
6c0ccd5ffd vim. add LedgerToggleTransactionState()
By using
  call LedgerToggleTransactionState(line('.'), ' *?')
the state of the transaction will toggle through:
  no state -> * -> ? -> no state -> …
beginning at what ever state it currently has.
Adjust to your liking.

Thanks to Chad Voegele for the suggestion.
2010-09-08 23:24:39 +02:00
Johann Klähn
58fcb0f30f vim. make sure cursor/line is on a transaction
Thanks to Chad Voegele for reporting and fixing this in
the first place.
2010-09-08 22:31:42 +02:00
Johann Klähn
019a60e6d1 vim. update s:get_columns() 2010-09-08 22:18:28 +02:00
Johann Klähn
e4060eb421 vim. get transactions in a range of lines 2010-09-08 17:34:38 +02:00
Johann Klähn
eea6f33a2e vim. fix return type of s:transaction.from_lnum() 2010-09-08 17:34:05 +02:00