Commit graph

4278 commits

Author SHA1 Message Date
Craig Earls
8bb5bae7a9 Filled in many blank entries
Also reformatted the option lists to be more like the GCC manual
2012-10-09 16:09:09 -07:00
Craig Earls
ecc91c6b95 Corrected a few missing @ symbols per Jeroen 2012-10-04 06:25:18 -07:00
Craig Earls
1ebc014f55 correcte --period-sort arguments in section 7.3.1 2012-10-03 12:23:21 -07:00
John Wiegley
46986ed4b1 Merge pull request #84 from bkuhn/bug-492
Regression tests for Bug 492
2012-10-03 08:22:37 -07:00
Bradley M. Kuhn
bf7375db11 Rounding is different for balance totals vs. postings when using posting costs.
test/regress/CAE63F5C-b.test and test/regress/CAE63F5C-c.test should both
pass, but test/regress/CAE63F5C-c.test does not, because the total line of
$6.46 is rounded wrong; it should be $6.45.

There seems to be different rounding occurring for totals vs. postings.

This seems to be related to Bug #492.
2012-09-30 14:53:05 -04:00
Paolo Capriotti
e56a4ffef0 Running totals on a report including automated transactions are computed with extra precision,
resulting in balances differing from the sum of their components.
2012-09-30 14:46:51 -04:00
John Wiegley
dcd64a6782 Added -N/--ninja option to acprep 2012-09-27 17:42:43 -05:00
John Wiegley
a9bd40a1e3 Don't use the ninja build command by default 2012-09-27 17:40:17 -05:00
John Wiegley
300cefd1a7 Changes to support using homebrew and ninja 2012-09-26 12:25:26 -05:00
John Wiegley
7c288b956d Changes for CMake 2012-09-21 15:12:38 -05:00
John Wiegley
f995d143c5 Merge pull request #82 from bkuhn/doc-fixed-directive
Documentation for the fixed directive.
2012-09-18 00:11:01 -07:00
Bradley M. Kuhn
06356ebf90 Make reference and link to Bug Report #789 in fixed directive documentation.
Due to weirdness that's currently true with the existing next branch of
ledger, I believe it's important to tell users in the documentation that
there are some discrepancies in the 'fixed' directive behavior.

The documentation from my previous commit is written to explain what
'fixed' *should* do; adding the bug report link here is a placeholder to
tell users that it may not do what they think it does.

Obviously, if someone closes #789, they should remove this paragraph added
herein.  But, if the bug report is closed, but the documentation lags
behind, the worst that happens is some users have to click through to see
the bug is closed.
2012-09-14 16:54:12 -04:00
Bradley M. Kuhn
438806ac71 Documentation for the fixed directive.
Based on conversation with johnw on IRC, I believe this text properly
documents the intended feature of the fixed directive.
2012-09-14 16:39:41 -04:00
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