Commit graph

4265 commits

Author SHA1 Message Date
Bradley M. Kuhn
ccf10e2060 Created Fixated prices node.
There was a Fixated prices section, but no Fixated prices node.
This of course required an update of nodes and menus throughout chapter.
2012-09-14 16:35:46 -04:00
John Wiegley
d48560919a Merge pull request #81 from bkuhn/doc-small-improvements
Document "Data File Parsing Information" format strings.
2012-09-09 21:45:08 -07:00
Bradley M. Kuhn
137183d19f Fixed typo: removed extra @tab. 2012-09-10 00:12:51 -04:00
Bradley M. Kuhn
fa89dc16a6 Document "Data File Parsing Information" format strings.
Based on my reading of src/format.cc and inspection of output on some test
data, I believe this is adequate documentation for these format strings.
2012-09-10 00:08:59 -04:00
John Wiegley
d1fadf07a8 Merge pull request #80 from bkuhn/contrib-non-profit-annual-audit-reports
Contrib: non-profit annual audit reports
2012-09-09 13:21:57 -07:00
John Wiegley
6ed2c5db4e Merge pull request #79 from bkuhn/gitignore-ledger3-info
doc/ledger3.info should be ignored.
2012-09-09 13:18:46 -07:00
Bradley M. Kuhn
71f351d618 doc/ledger3.info should be ignored.
doc/ledger3.info was probably missing from the .gitignore because
ledger3.info isn't build automatically yet, but might as well add it to
.gitignore for those who are building it by hand at the moment.
2012-09-08 14:40:30 -04: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
Bradley M. Kuhn
8dd41dc9e7 Add to .gitignore items generated by contrib/non-profit-audit-reports/demo.sh 2012-09-08 14:31:36 -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
Bradley M. Kuhn
41a7184be3 FAQ entry on how build your own Boost and/or CMake for use with Ledger.
Debian squeeze, which is currently the stable distribution at the time of
this commit, has both a Boost and a CMake that is too old for Ledger.
This FAQ entry explains how to build your own Boost and CMake for use with
Ledger, and the exact commands to type to build and install each, and then
configure, build and install Ledger against those new versions.
2012-09-06 20:31:48 -04:00
Bradley M. Kuhn
cd2fef1c0f Correct cmake variable for install prefix is "CMAKE_INSTALL_PREFIX", not "CMAKE_PREFIX_PATH".
CMAKE_PREFIX_PATH is for searching for other programs, not for the place
to install this one.  Based on acprep's --help, I think the intention was
to use CMAKE_INSTALL_PREFIX here.
2012-09-06 20:31:48 -04:00
John Wiegley
e53f6b2c05 Merge pull request #77 from bkuhn/acprep-wrong-cmake-install-prefix
Correct cmake variable for install prefix is "CMAKE_INSTALL_PREFIX", not "CMAKE_PREFIX_PATH".
2012-09-06 17:17:14 -07:00
John Wiegley
d994c03292 Merge pull request #78 from bkuhn/README-FAQ-on-building-own-boost-cmake
FAQ entry on how build your own Boost and/or CMake for use with Ledger.
2012-09-06 17:16:18 -07:00
Bradley M. Kuhn
6fff6e993a FAQ entry on how build your own Boost and/or CMake for use with Ledger.
Debian squeeze, which is currently the stable distribution at the time of
this commit, has both a Boost and a CMake that is too old for Ledger.
This FAQ entry explains how to build your own Boost and CMake for use with
Ledger, and the exact commands to type to build and install each, and then
configure, build and install Ledger against those new versions.
2012-09-06 19:35:21 -04:00
Bradley M. Kuhn
5b916dae6c Correct cmake variable for install prefix is "CMAKE_INSTALL_PREFIX", not "CMAKE_PREFIX_PATH".
CMAKE_PREFIX_PATH is for searching for other programs, not for the place
to install this one.  Based on acprep's --help, I think the intention was
to use CMAKE_INSTALL_PREFIX here.
2012-09-06 19:25:09 -04:00
John Wiegley
779378288f Merge pull request #76 from bkuhn/cmake-python-prepend-version-search-list
Ledger's Python API is known to work best against Python 2.7 &/or 2.6
2012-09-06 13:17:19 -07:00
Bradley M. Kuhn
72fa58b7fb Ledger's Python API is known to work best against Python 2.7, then Python 2.6
Indeed, at the moment, it doesn't work against Python 3.x at all, so
ideally, we'd like to tell CMake that no Python versions except 2.7 and
2.6 are acceptable.  However, at least as of CMake 2.8.8, there appears to
be no way to instruct CMake to never consider other versions of Python.

In other words, Python_ADDITIONAL_VERSIONS is prepended to the list of
possible Python versions considered, rather than replacing it wholly.

Theoretically, we could try to diddle withe the internal CMake variables
_PYTHON_FIND_OTHER_VERSIONS or _Python_VERSIONS somehow, but that seems
kludgey and dangerous.  This patch is probably "enough for now" to at
least make sure that if the user has both Python 2.x and Python 3.x
installed, some version of 2.x that is known to work will be preferred.
2012-09-06 16:12:31 -04:00
John Wiegley
608d27a774 Merge pull request #74 from hwright/next
Fix a couple of compilation warnings
2012-08-16 08:51:08 -07:00
Martin Michlmayr
bb9ba01cd2 Typo fix 2012-08-15 12:24:32 +01:00
Hyrum Wright
73aa585efa Fix compilation warning: ensure a destructor is properly defined to avoid
compiler confusion.
2012-08-14 01:23:32 -04:00
Hyrum Wright
6ccb5e9687 Fix compilation warning: be sure we call the base class copy constructor. 2012-08-14 01:23:04 -04:00
John Wiegley
97693b43b5 Resolve account.date to latest post in the account 2012-08-09 16:56:53 -05:00
John Wiegley
e716995311 Patch reports with markers to allow xact shifting 2012-08-08 00:34:07 -05:00
John Wiegley
a54ee9047b Doc fix 2012-08-07 15:19:59 -05:00
John Wiegley
afc023406a Always store absolute paths internally 2012-08-02 16:13:58 -05:00
John Wiegley
2de6af2761 Don't use __has_feature in utils.cc 2012-08-02 13:11:24 -05:00
John Wiegley
f34a4e315e Change occurences of #+srcname to #+name 2012-08-01 16:08:43 -05:00
John Wiegley
8538878d8d Guard some function definitions for ASan 2012-07-30 23:24:15 -05:00
John Wiegley
14ab4f7775 Updated to Boost 1.50 2012-07-30 23:24:04 -05:00
John Wiegley
39ce225004 Added a link_directories statement 2012-07-30 23:20:55 -05:00
John Wiegley
d203393cab Allow non-register reports to work again 2012-07-30 22:35:21 -05:00
John Wiegley
e6acb5a9cc Require ldg-report from ldg-new (for now) 2012-07-30 22:32:29 -05:00
John Wiegley
628fc01962 Add ability to visit source line from ldg-report 2012-07-30 22:32:10 -05:00
John Wiegley
1751a8ee27 Change git:// submodule URL to http:// 2012-07-02 16:45:01 -05:00
John Wiegley
8869566331 Fixed a subtle memory overwrite
Fixes #608
2012-06-27 16:55:46 -05:00
John Wiegley
cbf4cba18b Fixed a minor documentation bug 2012-06-25 19:10:45 -05:00